public inbox for
 help / color / mirror / Atom feed
From: Alan Modra <>
Subject: objdump: Free sorted_syms on error path
Date: Wed, 30 Aug 2023 11:25:01 +0930	[thread overview]
Message-ID: <> (raw)

	* 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);

Alan Modra
Australia Development Lab, IBM

                 reply	other threads:[~2023-08-30  1:55 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).