Fix an aout memory leak
* aoutx.h (aout_bfd_free_cached_info): Free line_buf.
This commit is contained in:
parent
10df41b188
commit
dd3a3d0af9
1 changed files with 1 additions and 0 deletions
|
@ -2909,6 +2909,7 @@ NAME (aout, bfd_free_cached_info) (bfd *abfd)
|
|||
return true;
|
||||
|
||||
#define BFCI_FREE(x) do { free (x); x = NULL; } while (0)
|
||||
BFCI_FREE (adata (abfd).line_buf);
|
||||
BFCI_FREE (obj_aout_symbols (abfd));
|
||||
#ifdef USE_MMAP
|
||||
obj_aout_external_syms (abfd) = 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue