From: Dan Fandrich Date: Wed, 7 Nov 2007 04:53:37 +0000 (+0000) Subject: Add a call to curl_global_cleanup to show how to do a proper shutdown. X-Git-Tag: curl-7_18_0~301 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=70f10f1ac9270d67ceec53f3db5f76af8532c5e0;p=thirdparty%2Fcurl.git Add a call to curl_global_cleanup to show how to do a proper shutdown. --- diff --git a/docs/examples/getinmemory.c b/docs/examples/getinmemory.c index e80aa4165b..fc1f87a912 100644 --- a/docs/examples/getinmemory.c +++ b/docs/examples/getinmemory.c @@ -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; }