cURL / Mailing Lists / curl-library / Single Mail


Re: about to free easy handle

From: Ray Satiro via curl-library <>
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:
Received on 2015-03-29