mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-24 02:24:46 +08:00
objdump: Free sorted_syms on error path
* objdump.c (disassemble_data): Free sorted_syms before returning.
This commit is contained in:
parent
0283863037
commit
aa1e22eb8d
@ -4151,6 +4151,7 @@ disassemble_data (bfd *abfd)
|
||||
non_fatal (_("can't disassemble for architecture %s\n"),
|
||||
bfd_printable_arch_mach (bfd_get_arch (abfd), 0));
|
||||
exit_status = 1;
|
||||
free (sorted_syms);
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user