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

	* dwarf2.c (_bfd_dwarf2_cleanup_debug_info): Free
	dwarf_addr_buffer and dwarf_str_offsets_buffer.

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;

-- 
Alan Modra
Australia Development Lab, IBM

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

only message in thread, other threads:[~2024-04-19  0:32 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:32 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).