Add a call to curl_global_cleanup to show how to do a proper shutdown.
This commit is contained in:
Родитель
775b60fa09
Коммит
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;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче