curl-library
Re: curl_slist_append segfault
From: Lars Nilsson <chamaeleon_at_gmail.com>
Date: Thu, 1 Sep 2011 13:12:05 -0400
Date: Thu, 1 Sep 2011 13:12:05 -0400
On Thu, Sep 1, 2011 at 12:26 PM, Tim Johnson <tbj002_at_gmail.com> wrote:
> Oops, I thought the *free commands would return the pointers to a state
> where they could be reused.
> Thank you for the help.
You're dealing with C functions, so unless you use &<variable> they
can't modify it (as is done in the formadd function call for
instance..). Since the free-functions in this case does not take a
pointer to a pointer, it will always be your responsibility to do it.
Lars Nilsson
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-09-01