From dd3a3d0af9f6d1f9f14e9dcb66b9107335969331 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Fri, 6 Jan 2023 20:05:05 +1030 Subject: [PATCH] Fix an aout memory leak * aoutx.h (aout_bfd_free_cached_info): Free line_buf. --- bfd/aoutx.h | 1 + 1 file changed, 1 insertion(+) 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; -- 2.30.2