curl_global_cleanup

Syntax

#include <curl/curl.h>

void curl_global_cleanup(void);

Parameters

None.

Return Values

None.

Description

This function releases resources acquired by curl_global_init. When finished using libcurl, call curl_global_cleanup once for each call made to curl_global_init.

This function is not thread-safe. Do not call it when any other thread in the program (i.e. a thread sharing the same memory) is running. This does not indicate another thread that is using libcurl. Because curl_global_cleanup calls functions of other libraries that are similarly not thread-safe, it could conflict with another thread that uses these other libraries.

For information on how to use this function, see the description of global environment requirements in libcurl.

Do Not Call From

None.

See Also

HTTP Client Library (libcurl)
libcurl API Functions
libcurl Error Codes
curl_global_init

Revision History

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


CONFIDENTIAL