aboutsummaryrefslogtreecommitdiff
path: root/docs/examples
diff options
context:
space:
mode:
authorDan Fandrich <dan@coneharvesters.com>2007-11-07 04:53:37 +0000
committerDan Fandrich <dan@coneharvesters.com>2007-11-07 04:53:37 +0000
commit70f10f1ac9270d67ceec53f3db5f76af8532c5e0 (patch)
tree1b658226d622c0faf628857bc9d3f4c8736c771c /docs/examples
parent775b60fa09c335451e01fef9d7e327afbb0dff8f (diff)
Add a call to curl_global_cleanup to show how to do a proper shutdown.
Diffstat (limited to 'docs/examples')
-rw-r--r--docs/examples/getinmemory.c3
1 files changed, 3 insertions, 0 deletions
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;
}