From: Alan Modra Date: Fri, 6 Jan 2023 09:35:05 +0000 (+1030) Subject: Fix an aout memory leak X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=dd3a3d0af9f6d1f9f14e9dcb66b9107335969331;p=binutils-gdb.git Fix an aout memory leak * aoutx.h (aout_bfd_free_cached_info): Free line_buf. --- 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;