objdump: Free sorted_syms on error path

* objdump.c (disassemble_data): Free sorted_syms before returning.
This commit is contained in:
Alan Modra 2023-08-30 11:18:01 +09:30
parent 0283863037
commit aa1e22eb8d

View File

@ -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;
}