diff options
author | Dan Fandrich <dan@coneharvesters.com> | 2007-11-07 04:53:37 +0000 |
---|---|---|
committer | Dan Fandrich <dan@coneharvesters.com> | 2007-11-07 04:53:37 +0000 |
commit | 70f10f1ac9270d67ceec53f3db5f76af8532c5e0 (patch) | |
tree | 1b658226d622c0faf628857bc9d3f4c8736c771c | |
parent | 775b60fa09c335451e01fef9d7e327afbb0dff8f (diff) |
Add a call to curl_global_cleanup to show how to do a proper shutdown.
-rw-r--r-- | docs/examples/getinmemory.c | 3 |
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; } |