termux-packages/disabled-packages/ltrace/ltrace-elf.c.patch

14 lines
428 B
Diff
Raw Normal View History

--- ltrace-2def9f1217374cc8371105993003b2c663aefda7/ltrace-elf.c 2016-04-11 21:30:04.000000000 +0200
+++ src/ltrace-elf.c 2016-05-07 21:23:17.999754862 +0200
@@ -423,7 +423,9 @@
debug(DEBUG_FUNCTION, "close_elf()");
elf_end(lte->elf);
close(lte->fd);
- VECT_DESTROY(&lte->plt_relocs, GElf_Rela, NULL, NULL);
+ if (lte->plt_relocs.elt_size) {
+ VECT_DESTROY(&lte->plt_relocs, GElf_Rela, NULL, NULL);
+ }
}
static void