From: Alan Modra <amodra@sourceware.org>
To: bfd-cvs@sourceware.org
Subject: [binutils-gdb] bfd_find_nearest_line leaks dwarf_rnglists_buffer
Date: Mon, 11 Dec 2023 05:49:04 +0000 (GMT) [thread overview]
Message-ID: <20231211054904.75E7E3858028@sourceware.org> (raw)
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=42cb93f57d582d4ed365622c7eb970547c629176
commit 42cb93f57d582d4ed365622c7eb970547c629176
Author: Konstantin Isakov <ikm@zbackup.org>
Date: Sun Dec 10 21:45:32 2023 -0300
bfd_find_nearest_line leaks dwarf_rnglists_buffer
* dwarf2.c (_bfd_dwarf2_cleanup_debug_info): Free dwarf_rnglists_buffer.
Diff:
---
bfd/dwarf2.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/bfd/dwarf2.c b/bfd/dwarf2.c
index 22e6b467598..8c14d0f3177 100644
--- a/bfd/dwarf2.c
+++ b/bfd/dwarf2.c
@@ -6123,6 +6123,7 @@ _bfd_dwarf2_cleanup_debug_info (bfd *abfd, void **pinfo)
free (file->dwarf_line_str_buffer);
free (file->dwarf_str_buffer);
free (file->dwarf_ranges_buffer);
+ free (file->dwarf_rnglists_buffer);
free (file->dwarf_line_buffer);
free (file->dwarf_abbrev_buffer);
free (file->dwarf_info_buffer);
reply other threads:[~2023-12-11 5:49 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=20231211054904.75E7E3858028@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).