From: Alan Modra <amodra@sourceware.org>
To: binutils-cvs@sourceware.org
Subject: [binutils-gdb] memory leak in bfd/dwarf2.c
Date: Fri, 19 Apr 2024 00:33:13 +0000 (GMT) [thread overview]
Message-ID: <20240419003313.7E291384AB63@sourceware.org> (raw)
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=2304772225e51cb939d3766cde47d7651d15176e
commit 2304772225e51cb939d3766cde47d7651d15176e
Author: Alan Modra <amodra@gmail.com>
Date: Fri Apr 19 09:10:25 2024 +0930
memory leak in bfd/dwarf2.c
* dwarf2.c (_bfd_dwarf2_cleanup_debug_info): Free
dwarf_addr_buffer and dwarf_str_offsets_buffer.
Diff:
---
bfd/dwarf2.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/bfd/dwarf2.c b/bfd/dwarf2.c
index 2e87d18a129..8eb7b11e1ca 100644
--- a/bfd/dwarf2.c
+++ b/bfd/dwarf2.c
@@ -6149,6 +6149,8 @@ _bfd_dwarf2_cleanup_debug_info (bfd *abfd, void **pinfo)
free (file->dwarf_line_buffer);
free (file->dwarf_abbrev_buffer);
free (file->dwarf_info_buffer);
+ free (file->dwarf_addr_buffer);
+ free (file->dwarf_str_offsets_buffer);
if (file == &stash->alt)
break;
file = &stash->alt;
reply other threads:[~2024-04-19 0:33 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=20240419003313.7E291384AB63@sourceware.org \
--to=amodra@sourceware.org \
--cc=binutils-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).