aboutsummaryrefslogtreecommitdiff
path: root/docs/examples
diff options
context:
space:
mode:
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;
}