From aa1e22eb8d685d456469f3da7933f9215b4d79ef Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Wed, 30 Aug 2023 11:18:01 +0930 Subject: [PATCH] objdump: Free sorted_syms on error path * objdump.c (disassemble_data): Free sorted_syms before returning. --- binutils/objdump.c | 1 + 1 file changed, 1 insertion(+) 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; } -- 2.30.2