Add a call to curl_global_cleanup to show how to do a proper shutdown.
This commit is contained in:
parent
775b60fa09
commit
70f10f1ac9
@ -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…
x
Reference in New Issue
Block a user