memory leak in bfd/dwarf2.c
Alan Modra
amodra@gmail.com
Fri Apr 19 00:32:35 GMT 2024
* 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
More information about the Binutils
mailing list