This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[RFA] nm.c, display_rel_file, fix memory leak


OK?

2011-03-07  Michael Snyder  <msnyder@vmware.com>

	* nm.c (display_rel_file): Free symsizes.

Index: nm.c
===================================================================
RCS file: /cvs/src/src/binutils/nm.c,v
retrieving revision 1.65
diff -u -p -r1.65 nm.c
--- nm.c	8 Oct 2010 15:12:29 -0000	1.65
+++ nm.c	8 Mar 2011 00:39:08 -0000
@@ -1101,6 +1101,7 @@ display_rel_file (bfd *abfd, bfd *archiv
     print_size_symbols (abfd, dynamic, symsizes, symcount, archive_bfd);
 
   free (minisyms);
+  free (symsizes);
 }
 
 static void

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]