cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: Memory leak when using curl_easy_perform with Curl 7.6.1 libr ary

From: Nielsen Linus (ext) <Linus.Nielsen_at_elema.siemens.se>
Date: Wed, 26 Sep 2001 16:03:51 +0200

Hi!

Before we do any further analysis, you should upgrade to
the latest version. I believe it is 7.9.

Try that, and please report if your problem persists.

And by the way, you might have to change your code a little,
as the API may have changed slightly.

Regards,

/Linus

> -----Original Message-----
> From: Bescon, Guenole [mailto:Guenole.Bescon_at_compaq.com]
> Sent: den 26 september 2001 15:50
> To: curl-library_at_lists.sourceforge.net
> Subject: Memory leak when using curl_easy_perform with Curl 7.6.1
> library
>
>
> Hello,
>
> I currently use the libcurl 7.6.1 to do HTTP posts.
>
> I encountered a memory leak during my endurance tests
>
> The leak seems to be in the curl_easy_perform function
>
> Is it a known problem ?
>
> is a patch available to correct this leak ?
>
> Thanks
> Gwen
>
> Here is my code:
> mySession = curl_easy_init();
>
> myCode = curl_easy_setopt(mySession, CURLOPT_STDERR, myNullFile);
> myCode = curl_easy_setopt(mySession, CURLOPT_FAILONERROR, 1);
> myCode = curl_easy_setopt(mySession, CURLOPT_NOPROGRESS, 1);
> myCode = curl_easy_setopt(mySession, CURLOPT_MUTE, 1);
> myCode = curl_easy_setopt(mySession, CURLOPT_POST, 1);
> myCode = curl_easy_setopt(mySession, CURLOPT_TIMEOUT, myTimeout);
>
> myCode = curl_easy_setopt(mySession, CURLOPT_URL, myUrl);
> myCode = curl_easy_setopt(mySession, CURLOPT_POSTFIELDS, myData);
>
> myCode = curl_easy_perform(mySession);
>
> curl_easy_cleanup(mySession);
>
>
>
>
Received on 2001-09-26