cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: free() warning from curl library on netbsd 3.0.

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sat, 4 Aug 2007 15:46:00 +0200 (CEST)

On Sat, 4 Aug 2007, Pradeep wrote:

> I'm using curl library 7.16.1

> MyApp in free(): warning: junk pointer, too high to make sense.
>
> I reuse the same easy handle for transferring all files to the same ftp
> server.
>
> curl_easy_setopt(m_pCurl, CURLOPT_URL, m_szURL.c_str());
> The above call causes it to print the said warning.

Needless to say, quote a few people set that option without problems. Can you
perhaps provide a full example that repeats the problem?

> The free() call is in url.c(line 1247).

7.16.1 has no free() call in url.c:1247, so if you have one you don't have the
stock 7.16.1 version. I guess you meant that for the 7.16.4, since that has a
free there...

But still, that free() is fine. The problem is rather that you somehow got a
bad pointer in that variable that wasn't supposed to be there...

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2007-08-04