Skip to content

Commit dd3a3d0

Browse files
committed
Fix an aout memory leak
* aoutx.h (aout_bfd_free_cached_info): Free line_buf.
1 parent 10df41b commit dd3a3d0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

bfd/aoutx.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2909,6 +2909,7 @@ NAME (aout, bfd_free_cached_info) (bfd *abfd)
29092909
return true;
29102910

29112911
#define BFCI_FREE(x) do { free (x); x = NULL; } while (0)
2912+
BFCI_FREE (adata (abfd).line_buf);
29122913
BFCI_FREE (obj_aout_symbols (abfd));
29132914
#ifdef USE_MMAP
29142915
obj_aout_external_syms (abfd) = 0;

0 commit comments

Comments
 (0)