From 70f10f1ac9270d67ceec53f3db5f76af8532c5e0 Mon Sep 17 00:00:00 2001 From: Dan Fandrich Date: Wed, 7 Nov 2007 04:53:37 +0000 Subject: Add a call to curl_global_cleanup to show how to do a proper shutdown. --- docs/examples/getinmemory.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'docs/examples/getinmemory.c') diff --git a/docs/examples/getinmemory.c b/docs/examples/getinmemory.c index e80aa4165..fc1f87a91 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; } -- cgit v1.2.3