curl-library
Re: curl_formfree()
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sun, 17 Apr 2011 12:58:32 +0200 (CEST)
Date: Sun, 17 Apr 2011 12:58:32 +0200 (CEST)
On Sun, 17 Apr 2011, richardcavell_at_mail.com wrote:
> curl_formfree(first);
> first=NULL;
>
> Now, am I right in thinking that first is invalid after the curl_formfree()?
The data 'first' points to has been freed at that point, yes.
> Is last still valid for anything or should I reset it to NULL after the
> curl_formfree() ?
You don't have to set it to anything, but you must not use the memory it
points to for anything.
-- / daniel.haxx.se ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2011-04-17