[PATCH] Potential memory leak in argz_replace.c
David Stacey
drstacey@tiscali.co.uk
Tue Jun 9 17:25:00 GMT 2015
On 01/06/15 09:10, Corinna Vinschen wrote:
> Thanks but, uhm, that didn't quite work out:
>
> libc/argz/argz_replace.c: In function âargz_replaceâ:
> libc/argz/argz_replace.c:75:26: error: assignment makes integer from pointer without a cast [-Werror]
> if(!(*argz_realloc = (char *)realloc(*argz, new_argz_len)))
> ^
> libc/argz/argz_replace.c:80:12: error: assignment from incompatible pointer type [-Werror]
> argz = argz_realloc;
> ^
> cc1: all warnings being treated as errors
>
> I fixed that and applied the patch.
Oh my, that's embarrassing! Thanks for fixing.
Dave.
More information about the Newlib
mailing list