[RFA] ar.c (map_over_members): Plug memory leak.
Richard Sandiford
richard.sandiford@linaro.org
Tue Mar 15 11:59:00 GMT 2011
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
More information about the Binutils
mailing list