mirror of
https://github.com/curl/curl.git
synced 2026-07-24 18:57:18 +03:00
Add a call to curl_global_cleanup to show how to do a proper shutdown.
This commit is contained in:
parent
775b60fa09
commit
70f10f1ac9
1 changed files with 3 additions and 0 deletions
|
|
@ -98,5 +98,8 @@ int main(int argc, char **argv)
|
|||
if(chunk.memory)
|
||||
free(chunk.memory);
|
||||
|
||||
/* we're done with libcurl, so clean it up */
|
||||
curl_global_cleanup();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue