aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2024-04-19 09:10:25 +0930
committerAlan Modra <amodra@gmail.com>2024-04-19 10:00:57 +0930
commit2304772225e51cb939d3766cde47d7651d15176e (patch)
tree6c61cb27bd262915ef33d8665953ded6cfc7e43d /bfd
parenta1defbe4267c73b318f0e0aad82691ef3647cc1f (diff)
downloadgdb-2304772225e51cb939d3766cde47d7651d15176e.zip
gdb-2304772225e51cb939d3766cde47d7651d15176e.tar.gz
gdb-2304772225e51cb939d3766cde47d7651d15176e.tar.bz2
memory leak in bfd/dwarf2.c
* dwarf2.c (_bfd_dwarf2_cleanup_debug_info): Free dwarf_addr_buffer and dwarf_str_offsets_buffer.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/dwarf2.c2
1 files changed, 2 insertions, 0 deletions
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;