This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [RFA] nm.c, display_rel_file, fix memory leak
- From: Richard Sandiford <richard dot sandiford at linaro dot org>
- To: Michael Snyder <msnyder at vmware dot com>
- Cc: "binutils\ at sourceware dot org" <binutils at sourceware dot org>
- Date: Mon, 14 Mar 2011 12:06:33 +0000
- Subject: Re: [RFA] nm.c, display_rel_file, fix memory leak
- References: <4D757BAE.9070001@vmware.com>
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