cURL / Mailing Lists / curl-users / Single Mail


Re: curl_slist_append segfault

From: Lars Nilsson <>
Date: Tue, 30 Aug 2011 00:46:48 -0400

On Mon, Aug 29, 2011 at 10:48 PM, Tim Johnson <> wrote:
>     curl_slist_free_all (headerlist);
> I've explicitly listed all functions that should be using headerlist.
> On the second iteration through the loop, I get a segfault  at the
> curl_slist_append call.  I'm hoping it's just something simple I'm doing.  I
> searched around, the only thing I saw that looked like this was an issue
> that appeared to be fixed by a patch back in 2003.   I'm linking against
>, which is a symlink to
> Thanks for any help.
> -Tim

Maybe add

  headerlist = NULL;

after the above line to make curl_slist_append() start fresh in the
loop on each iteration?

Lars Nilsson

List admin:
Received on 2011-08-30