Skip to content

Commit

Permalink
Fix #2683
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarofe authored and radare committed Jun 3, 2015
1 parent f182a72 commit fddb32c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libr/bin/format/elf/elf.c
Original file line number Diff line number Diff line change
Expand Up @@ -1615,6 +1615,7 @@ if (
free (sym);
sym = NULL;
ret[ret_ctr].last = 1; // ugly dirty hack :D
R_FREE (strtab);

if (type == R_BIN_ELF_IMPORTS && !bin->imports_by_ord_size) {
bin->imports_by_ord_size = nsym;
Expand All @@ -1625,7 +1626,6 @@ if (
} else break;
}
}
free (strtab);
// maybe it had some section header but not the symtab
if (!ret) return get_symbols_from_phdr (bin, type);
return ret;
Expand Down

0 comments on commit fddb32c

Please sign in to comment.