[binutils-gdb] PR32716, objdump -i memory leak

Alan Modra amodra@sourceware.org
Tue Feb 18 22:23:38 GMT 2025


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

commit ba6ad3a18cb26b79e0e3b84c39f707535bbc344d
Author: Alan Modra <amodra@gmail.com>
Date:   Wed Feb 19 07:58:54 2025 +1030

    PR32716, objdump -i memory leak
    
            PR binutils/32716
            * bucomm.c (display_info): Free arg.info.

Diff:
---
 binutils/bucomm.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/binutils/bucomm.c b/binutils/bucomm.c
index ccf54099154..d4554737db1 100644
--- a/binutils/bucomm.c
+++ b/binutils/bucomm.c
@@ -435,6 +435,7 @@ display_info (void)
   if (!arg.error)
     display_target_tables (&arg);
 
+  free (arg.info);
   return arg.error;
 }


More information about the Binutils-cvs mailing list