From: Alan Modra Date: Wed, 30 Aug 2023 01:48:01 +0000 (+0930) Subject: objdump: Free sorted_syms on error path X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=aa1e22eb8d685d456469f3da7933f9215b4d79ef;p=binutils-gdb.git objdump: Free sorted_syms on error path * objdump.c (disassemble_data): Free sorted_syms before returning. --- diff --git a/binutils/objdump.c b/binutils/objdump.c index fb0db5d4fe8..60813426566 100644 --- a/binutils/objdump.c +++ b/binutils/objdump.c @@ -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; }