cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Memory leak if FTP server responds "530 Login incorrect"

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 11 Dec 2006 14:01:41 +0100 (CET)

On Mon, 11 Dec 2006, Alexey Simak wrote:

> You can use the next url:
> ftp://ftp.sunet.se/pub/www/utilities/curl/curl-7.9.2.tar.gz

Ok, when I use you exact test source. I first:

1. Fix the #include line (it should be #include <curl/curl.h>)

2. Make sure TRUE is defined (otherwise I can't compile it)

3. Call curl_memdebug() to activate memory leak debugging

4. Edit the URL to use the one quoted above

I then run the example and use 'memanalyze.pl' to check for leaks:

$ memanalyze.pl memdump
$

Ie, it finds none. I even did a make clean and rebuild just to be extra sure
my build has nothing "weird" in it, but still no leak.

It makes me interested in what the difference is between your build/version
and mine!

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2006-12-11