cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: memory leak or my error?

From: Paul Accosta <paco_at_hungary.cc>
Date: Thu, 29 May 2003 22:55:18 +0200

Ive pretty much combed the entire program and used Purify to make sure
there is no memory leaks on my part. I do a check by getting the memroy
before these series of calls and then get a check of memory after
clean_up and it is still higher.

The program never terminitnates so I do not use curl_global_cleanup.

Im not sure what else I can do, any ideas?
Paco

Edward Chan <echan_at_macromedia.com> wrote:

>That code looks fine. Is it possible that you are dynamically
> allocating memory elsewhere that you use and are fogetting to free?
Is
> dst_str being allocated each time?
>
> Ed
>
> > -----Original Message-----
> > From: Paul Accosta [mailto:paco_at_hungary.cc]
> > Sent: Thursday, May 29, 2003 12:11 PM
> > To: curl-library_at_lists.sourceforge.net
> > Subject: memory leak or my error?
> >
> >
> > Im basically just doing a get of a webpage, its boils donw to 4
basic
> > calls:
> >
> > curl = curl_easy_init();
> > curl_easy_setopt(curl, CURLOPT_URL, dst_str);
> > res = curl_easy_perform(curl);
> > curl_easy_cleanup(curl);
> >
> > Ive noticed my memory keeps rising, I monitored it carefully
> > and notice that it rises significantly with the perform call
> > and never drops back down. Is there something else I need to
> > do to fix this?
> >
> > Paco
> >
> > ps.Thanks for all the help last time, your ideas worked for me
> >
> >
> >
> >
> >
> >
> > -------------------------------------------------------
> > This SF.net email is sponsored by: eBay
> > Get office equipment for less on eBay!
> > http://adfarm.mediaplex.com/ad/ck/711-11697-> 6916-5
> >
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: eBay
> Get office equipment for less on eBay!
> http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
>
>
>
---------------------------------------

-------------------------------------------------------
This SF.net email is sponsored by: eBay
Get office equipment for less on eBay!
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
Received on 2003-05-29