summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2023-01-06 20:05:05 +1030
committerAlan Modra <amodra@gmail.com>2023-01-06 21:06:16 +1030
commitdd3a3d0af9f6d1f9f14e9dcb66b9107335969331 (patch)
tree2c63a682e22ca174dab118f9ce6c2ccd7b09d9a8
parent10df41b188b2692b6bc8c36d4003e0f8790d1f1b (diff)
downloadbinutils-gdb-dd3a3d0af9f6d1f9f14e9dcb66b9107335969331.tar.gz
Fix an aout memory leak
* aoutx.h (aout_bfd_free_cached_info): Free line_buf.
-rw-r--r--bfd/aoutx.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/bfd/aoutx.h b/bfd/aoutx.h
index ae3e917c880..6d6527640fe 100644
--- 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;