Re: Freeing CURLFORM_BUFFERPTR

2014-08-02 Thread Daniel Stenberg
On Sat, 2 Aug 2014, David Siebörger wrote: curl_formadd(3) says that the buffer provided with CURLFORM_BUFFERPTR "must not be freed until after curl_easy_cleanup(3) is called." Is that correct? It could probably benefit from a slight rewording. The point is that the option passes on a pointe

Freeing CURLFORM_BUFFERPTR

2014-08-02 Thread David Siebörger
Hi, curl_formadd(3) says that the buffer provided with CURLFORM_BUFFERPTR "must not be freed until after curl_easy_cleanup(3) is called." Is that correct? I'd imagine that once the request has been completed and curl_formfree has been called, curl would've lost the pointer to the buffer and