This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [RFA] (take two): ar.c (map_over_members): Plug memory leak.
- From: Andreas Schwab <schwab at redhat dot com>
- To: Michael Snyder <msnyder at vmware dot com>
- Cc: "binutils\ at sourceware dot org" <binutils at sourceware dot org>
- Date: Tue, 15 Mar 2011 12:52:18 +0100
- Subject: Re: [RFA] (take two): ar.c (map_over_members): Plug memory leak.
- References: <4D769256.3090103@vmware.com>
Michael Snyder <msnyder@vmware.com> writes:
> @@ -213,11 +213,13 @@ map_over_members (bfd *arch, void (*func
> else if (bfd_is_thin_archive (arch))
> {
> /* Thin archives store full pathnames. Need to normalize. */
> + free (filename);
Double free?
Andreas.
--
Andreas Schwab, schwab@redhat.com
GPG Key fingerprint = D4E8 DBE3 3813 BB5D FA84 5EC7 45C6 250E 6F00 984E
"And now for something completely different."