public inbox for binutils-cvs@sourceware.org
 help / color / mirror / Atom feed
* [binutils-gdb] memory leak in bfd/dwarf2.c
@ 2024-04-19  0:33 Alan Modra
  0 siblings, 0 replies; only message in thread
From: Alan Modra @ 2024-04-19  0:33 UTC (permalink / raw)
  To: binutils-cvs

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;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-04-19  0:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-19  0:33 [binutils-gdb] memory leak in bfd/dwarf2.c Alan Modra

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).