cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Possible memory leak with FTP and curl_easy_perform() ?

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 10 Oct 2008 23:12:28 +0200 (CEST)

On Fri, 10 Oct 2008, Jean-François Lavoie wrote:

> this will cause the leak :
>
> program 1
> {
> curl_global_init()
> curl_easy_init()
> curl_easy_setopt()...
>
> while (true)
> {
> curl_easy_perform()
> }
>
> curl_easy_cleanup()
> curl_global_cleanup()
> }

Can you please provide a fully working code against a public URL that you see
this leak with? So that we can try and check it out in our ends!

Also, I would recommend you using a more dedicated leak detecting tool in
order to properly not get fooled by natural memory uses.

It would be good if you could try with libcurl 7.19.0 too before proceeding
much further.

-- 
  / daniel.haxx.se
Received on 2008-10-10