From 2304772225e51cb939d3766cde47d7651d15176e Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Fri, 19 Apr 2024 09:10:25 +0930 Subject: memory leak in bfd/dwarf2.c * dwarf2.c (_bfd_dwarf2_cleanup_debug_info): Free dwarf_addr_buffer and dwarf_str_offsets_buffer. --- bfd/dwarf2.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'bfd') diff --git a/bfd/dwarf2.c b/bfd/dwarf2.c index 2e87d18..8eb7b11 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; -- cgit v1.1