1curl_global_cleanup(3) libcurl Manual curl_global_cleanup(3)
2
3
4
6 curl_global_cleanup - global libcurl cleanup
7
9 #include <curl/curl.h>
10
11 void curl_global_cleanup(void);
12
14 This function releases resources acquired by curl_global_init(3).
15
16 You should call curl_global_cleanup(3) once for each call you make to
17 curl_global_init(3), after you are done using libcurl.
18
19 This function is not thread safe. You must not call it when any other
20 thread in the program (i.e. a thread sharing the same memory) is run‐
21 ning. This doesn't just mean no other thread that is using libcurl.
22 Because curl_global_cleanup(3) calls functions of other libraries that
23 are similarly thread unsafe, it could conflict with any other thread
24 that uses these other libraries.
25
26 See the description in libcurl(3) of global environment requirements
27 for details of how to use this function.
28
29
31 curl_global_init(3), libcurl(3),
32
33
34
35
36libcurl 7.8 17 Feb 2006 curl_global_cleanup(3)