]> granicus.if.org Git - curl/commitdiff
examples/url2file.c: add missing curl_global_cleanup() call
authorDaniel Stenberg <daniel@haxx.se>
Thu, 18 Jan 2018 16:10:34 +0000 (17:10 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 18 Jan 2018 16:10:34 +0000 (17:10 +0100)
Reported-by: XhstormR on github
Fixes #2245

docs/examples/url2file.c

index 39f84d68b7396cbbb220b78eb40c502165aa5254..1bede8c1831d0c3ac653782a0d42f627de8f4f07 100644 (file)
@@ -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;
 }