This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [RFA] ar.c (map_over_members): Plug memory leak.
Olaf van der Spek <olafvdspek@gmail.com> writes:
> On Tue, Mar 15, 2011 at 12:41 PM, Richard Sandiford
> <richard.sandiford@linaro.org> wrote:
>> Maybe I'm being dense, but I don't get this. ÂDoes it even compile?
>
> Why would it not compile?
Because the final "free (filename);" is in the outermost block of the
function, but the "filename" variable is declared within a nested loop.
Richard