curl-users
RE: Program hangs in curl_slist_free_all the third time through my loop
Date: Tue, 18 May 2004 10:02:30 -0300
thanks for getting back to me Daniel.
Several days ago, being in somewhat of a hurry to get my first libcurl app
running, I took an example I found [verbatim] and it did not initialze the
headerlist before each re-use (in addition to calling curl_slist_free_all).
Once I overcame my tendency for laziness and actually looked at the curl
source code, I realized my problem.
I love libcurl, it is a great package (much simpler than libwww)! I will be
sending my paypal donation.
Thanks again,
Paul
-----Original Message-----
From: curl-users-bounces_at_cool.haxx.se
[mailto:curl-users-bounces_at_cool.haxx.se]On Behalf Of Daniel Stenberg
Sent: Tuesday, May 18, 2004 9:22 AM
To: curl tool talk
Subject: Re: Program hangs in curl_slist_free_all the third time through
my loop
On Fri, 7 May 2004, Paul Dore wrote:
(I have no idea why this post took 11 days to reach the list...)
> I am trying to get my first libcurl app running. I am doing http posts to
a
> site. I am re-using the same easy handle each time, just changing the
> headers and the postdata each post.
>
> My problem is that the program hangs the third tme I call
> curl_slist_free_all.
>
> Has anyone seen this problem?
curl_slist_free_all() merely walks through the list and frees the entries
previously added with curl_slist_append(). It indicates a memory-related
problem in your program or similar.
-- Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se Dedicated custom curl help for hire: http://haxx.se/curl.htmlReceived on 2004-05-18