cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: When is it safe to call curl_formfree() ?

From: S. Gilles <sgilles_at_math.umd.edu>
Date: Tue, 17 May 2016 11:57:16 -0400

On 2016-05-17T11:10:10+0200, Daniel Stenberg wrote:
> On Tue, 17 May 2016, S. Gilles wrote:
>
> > The man-pages (for 7.48.0) seem to disagree on one point.
>
> ...
>
> > The page for curl_formfree(), however, implies that I can call
> > curl_formfree() immediately after curl_easy_perform() returns.
>
> That's the case, of course assuming you either won't use the handle again or
> set another pointer to it with another call to
> curl_easy_setopt(CURLOPT_HTTPPOST).
>
> I updated the CURLOPT_HTTPPOST.3 man page now to hopefully make it slightly
> clearer.

Excellent, thanks for the quick reply.

-- 
S. Gilles
-------------------------------------------------------------------
List admin: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:  https://curl.haxx.se/mail/etiquette.html
Received on 2016-05-17