cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: curl-library Digest, Vol 124, Issue 24

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 18 Dec 2015 23:09:27 +0100 (CET)

On Fri, 18 Dec 2015, heath.schaefer_at_parker.com wrote:

> I figured out why I was getting the segfaults. I was freeing the curl_slist
> struct after I "put" it into the message. I assumed that it copied the
> information that it needed and then I could discard the struct but
> apparently not. I took away the free_slist() call and it's operating fine
> now.

This fact is documented in the CURLOPT_HTTPHEADER man page. Is there anywhere
else you were looking for this info that would've made you discover this
easier/sooner ?

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2015-12-18