curl-library
Re: free() warning from curl library on netbsd 3.0
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sat, 4 Aug 2007 22:39:56 +0200 (CEST)
Date: Sat, 4 Aug 2007 22:39:56 +0200 (CEST)
On Sat, 4 Aug 2007, Pradeep wrote:
> I have made the following changes in (7.16.4)url.c - line 1247.
>
> if(data->change.url_alloc == TRUE) {
>
> Now the warning is not coming. Everything seems to be fine. Is that OK??
Unfortunately it isn't. That variable should only be 0 or 1, and checking it
explicitly for 1 (instead of non-zero) only indicates that you got it set to
>1 when it should've been zero and that is either a bug in libcurl or in your
app...
-- Commercial curl and libcurl Technical Support: http://haxx.se/curl.htmlReceived on 2007-08-04