]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
Add a call to curl_global_cleanup to show how to do a proper shutdown.
authorDan Fandrich <dan@coneharvesters.com>
Wed, 7 Nov 2007 04:53:37 +0000 (04:53 +0000)
committerDan Fandrich <dan@coneharvesters.com>
Wed, 7 Nov 2007 04:53:37 +0000 (04:53 +0000)
docs/examples/getinmemory.c

index e80aa4165bc1145a16b72336fb61eade5f991699..fc1f87a912006684d8902644580c4756de199c5d 100644 (file)
@@ -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;
 }