From: Alan Modra <amodra@sourceware.org>
To: bfd-cvs@sourceware.org
Subject: [binutils-gdb] Fix an aout memory leak
Date: Fri, 6 Jan 2023 10:45:12 +0000 (GMT) [thread overview]
Message-ID: <20230106104512.D100F3858C2C@sourceware.org> (raw)
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=dd3a3d0af9f6d1f9f14e9dcb66b9107335969331
commit dd3a3d0af9f6d1f9f14e9dcb66b9107335969331
Author: Alan Modra <amodra@gmail.com>
Date: Fri Jan 6 20:05:05 2023 +1030
Fix an aout memory leak
* aoutx.h (aout_bfd_free_cached_info): Free line_buf.
Diff:
---
bfd/aoutx.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/bfd/aoutx.h b/bfd/aoutx.h
index ae3e917c880..6d6527640fe 100644
--- a/bfd/aoutx.h
+++ b/bfd/aoutx.h
@@ -2909,6 +2909,7 @@ NAME (aout, bfd_free_cached_info) (bfd *abfd)
return true;
#define BFCI_FREE(x) do { free (x); x = NULL; } while (0)
+ BFCI_FREE (adata (abfd).line_buf);
BFCI_FREE (obj_aout_symbols (abfd));
#ifdef USE_MMAP
obj_aout_external_syms (abfd) = 0;
reply other threads:[~2023-01-06 10:45 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:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230106104512.D100F3858C2C@sourceware.org \
--to=amodra@sourceware.org \
--cc=bfd-cvs@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* 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).