curl-library
curl_slist_free_all Issue
From: Laurent Taurines <ltaurines_at_hi-stor.com>
Date: Fri, 01 Dec 2006 13:28:36 +0100
Date: Fri, 01 Dec 2006 13:28:36 +0100
Hi All,
has anyone come across issues using curl_slist_free_all(slist). In the
following code libcurl loops on the FTP "site help" command. It works
fine if I do not use curl_slist_free_all(slist). It seems that the next
element of the linked list is itself. ??
// code start
slist = curl_slist_append(slist, "help");
curl_easy_setopt(curlhandle, CURLOPT_QUOTE, slist);
curl_easy_perform(curlhandle);
curl_slist_free_all(slist);
slist = curl_slist_append(slist, "site help");
curl_easy_setopt(curlhandle, CURLOPT_QUOTE, slist);
curl_easy_perform(curlhandle);
// code end
Thanks in advance
Laurent.
>
>
>
>
Received on 2006-12-01