diff options
author | Alan Modra <amodra@gmail.com> | 2024-04-19 09:10:25 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2024-04-19 10:00:57 +0930 |
commit | 2304772225e51cb939d3766cde47d7651d15176e (patch) | |
tree | 6c61cb27bd262915ef33d8665953ded6cfc7e43d /bfd | |
parent | a1defbe4267c73b318f0e0aad82691ef3647cc1f (diff) | |
download | gdb-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.c | 2 |
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; |