Commit | Line | Data |
---|---|---|
33b7171d MB |
1 | --- ltrace-2def9f1217374cc8371105993003b2c663aefda7/ltrace-elf.c 2016-04-11 21:30:04.000000000 +0200 |
2 | +++ src/ltrace-elf.c 2016-05-07 21:23:17.999754862 +0200 | |
3 | @@ -423,7 +423,9 @@ | |
4 | debug(DEBUG_FUNCTION, "close_elf()"); | |
5 | elf_end(lte->elf); | |
6 | close(lte->fd); | |
7 | - VECT_DESTROY(<e->plt_relocs, GElf_Rela, NULL, NULL); | |
8 | + if (lte->plt_relocs.elt_size) { | |
9 | + VECT_DESTROY(<e->plt_relocs, GElf_Rela, NULL, NULL); | |
10 | + } | |
11 | } | |
12 | ||
13 | static void |