projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
10df41b
)
Fix an aout memory leak
author
Alan Modra
<amodra@gmail.com>
Fri, 6 Jan 2023 09:35:05 +0000
(20:05 +1030)
committer
Alan Modra
<amodra@gmail.com>
Fri, 6 Jan 2023 10:36:16 +0000
(21:06 +1030)
* aoutx.h (aout_bfd_free_cached_info): Free line_buf.
bfd/aoutx.h
patch
|
blob
|
history
diff --git
a/bfd/aoutx.h
b/bfd/aoutx.h
index ae3e917c880a2e1f62bf9b4af276fc4cc415ee82..6d6527640fe4b7a3df2e4c834757e311f7d26fcd 100644
(file)
--- a/
bfd/aoutx.h
+++ b/
bfd/aoutx.h
@@
-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;