From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1062) id D100F3858C2C; Fri, 6 Jan 2023 10:45:12 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D100F3858C2C Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Alan Modra To: bfd-cvs@sourceware.org Subject: [binutils-gdb] Fix an aout memory leak X-Act-Checkin: binutils-gdb X-Git-Author: Alan Modra X-Git-Refname: refs/heads/master X-Git-Oldrev: 10df41b188b2692b6bc8c36d4003e0f8790d1f1b X-Git-Newrev: dd3a3d0af9f6d1f9f14e9dcb66b9107335969331 Message-Id: <20230106104512.D100F3858C2C@sourceware.org> Date: Fri, 6 Jan 2023 10:45:12 +0000 (GMT) X-BeenThere: binutils-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binutils-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Jan 2023 10:45:12 -0000 https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3Ddd3a3d0af9f6= d1f9f14e9dcb66b9107335969331 commit dd3a3d0af9f6d1f9f14e9dcb66b9107335969331 Author: Alan Modra Date: Fri Jan 6 20:05:05 2023 +1030 Fix an aout memory leak =20 * aoutx.h (aout_bfd_free_cached_info): Free line_buf. Diff: --- 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; =20 #define BFCI_FREE(x) do { free (x); x =3D NULL; } while (0) + BFCI_FREE (adata (abfd).line_buf); BFCI_FREE (obj_aout_symbols (abfd)); #ifdef USE_MMAP obj_aout_external_syms (abfd) =3D 0;