curl-library
Re: about to free easy handle
From: Ray Satiro via curl-library <curl-library_at_cool.haxx.se>
Date: Sun, 29 Mar 2015 13:17:43 -0400
Date: Sun, 29 Mar 2015 13:17:43 -0400
On 3/29/2015 8:54 AM, 兰天 wrote:
> hi everyone,
> we all know that we use curl_multi_remove_handle to remove an easy
> handle from a multi handle,and then we use curl_easy_cleanup(easy) to
> remove an easy handle!
> if after I call curl_easy_cleanup function,and I write this code:
> easy =NULL; Is that means we free a easy handle two times?
> assuming the easy definition: CURL* easy =curl_easy_init() ;
No, it does not mean that. Assigning NULL to a pointer does exactly that
and no more.
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2015-03-29