summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2018-01-18 17:10:34 +0100
committerDaniel Stenberg <daniel@haxx.se>2018-01-18 17:10:34 +0100
commitda07dbb869139aba984a5910aeb0a2d51dd3ec6f (patch)
tree904f0b74f3442ba34bd562b298ce7add0117e7c3
parentddafd45af12a128a99bfe4d35c58809e22d75c52 (diff)
downloadcurl-da07dbb869139aba984a5910aeb0a2d51dd3ec6f.tar.gz
examples/url2file.c: add missing curl_global_cleanup() call
Reported-by: XhstormR on github Fixes #2245
-rw-r--r--docs/examples/url2file.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/docs/examples/url2file.c b/docs/examples/url2file.c
index 39f84d68b..1bede8c18 100644
--- a/docs/examples/url2file.c
+++ b/docs/examples/url2file.c
@@ -5,7 +5,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2016, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2018, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
@@ -80,5 +80,7 @@ int main(int argc, char *argv[])
/* cleanup curl stuff */
curl_easy_cleanup(curl_handle);
+ curl_global_cleanup();
+
return 0;
}