public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* [RFA] nm.c, display_rel_file, fix memory leak
@ 2011-03-08  0:43 Michael Snyder
  2011-03-14 12:06 ` Richard Sandiford
  0 siblings, 1 reply; 2+ messages in thread
From: Michael Snyder @ 2011-03-08  0:43 UTC (permalink / raw)
  To: binutils

[-- Attachment #1: Type: text/plain, Size: 5 bytes --]

OK?


[-- Attachment #2: nm1.c --]
[-- Type: text/x-csrc, Size: 533 bytes --]

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [RFA] nm.c, display_rel_file, fix memory leak
  2011-03-08  0:43 [RFA] nm.c, display_rel_file, fix memory leak Michael Snyder
@ 2011-03-14 12:06 ` Richard Sandiford
  0 siblings, 0 replies; 2+ messages in thread
From: Richard Sandiford @ 2011-03-14 12:06 UTC (permalink / raw)
  To: Michael Snyder; +Cc: binutils

Michael Snyder <msnyder@vmware.com> writes:
> OK?

Yes, thanks.

> 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-03-14 12:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-08  0:43 [RFA] nm.c, display_rel_file, fix memory leak Michael Snyder
2011-03-14 12:06 ` Richard Sandiford

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).