public inbox for binutils-cvs@sourceware.org
 help / color / mirror / Atom feed
* [binutils-gdb] Fix an aout memory leak
@ 2023-01-06 10:45 Alan Modra
  0 siblings, 0 replies; only message in thread
From: Alan Modra @ 2023-01-06 10:45 UTC (permalink / raw)
  To: bfd-cvs

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=dd3a3d0af9f6d1f9f14e9dcb66b9107335969331

commit dd3a3d0af9f6d1f9f14e9dcb66b9107335969331
Author: Alan Modra <amodra@gmail.com>
Date:   Fri Jan 6 20:05:05 2023 +1030

    Fix an aout memory leak
    
            * 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;
 
 #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;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-01-06 10:45 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-06 10:45 [binutils-gdb] Fix an aout memory leak Alan Modra

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).