curl_easy_cleanup

Syntax

#include <curl/curl.h>

void curl_easy_cleanup(CURL * handle);

Parameters

handle Handle to a curl session.

Return Values

None.

Description

This function must be the last function to call for an easy session. It is the opposite of the curl_easy_init function and must be called with the same handle as input that the curl_easy_init call returned.

Effectively closes all connections the handle has used, and possibly has kept open, until now. Do not call this function if you intend to transfer more files. Any usage of the handle after this function has been called is illegal. This kills the handle and all memory associated with it.

Do Not Call From

None.

See Also

HTTP Client Library (libcurl)
libcurl API Functions
curl_easy_init

Revision History

2013/09/18 Conversion
2013/05/08 Automated cleanup pass.
2012/05/04 Initial version.


CONFIDENTIAL