]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
examples/multithread.c: call curl_global_cleanup()
authorDaniel Stenberg <daniel@haxx.se>
Mon, 29 Jun 2020 06:59:34 +0000 (08:59 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 29 Jun 2020 12:52:56 +0000 (14:52 +0200)
Reported-by: qiandu2006 on github
Fixes #5622
Closes #5623

docs/examples/multithread.c

index da07a16866641f435540bbb946cc50f37a349225..5777e5c032f204a8825cf0faf3601f4a8288afb7 100644 (file)
@@ -5,7 +5,7 @@
  *                            | (__| |_| |  _ <| |___
  *                             \___|\___/|_| \_\_____|
  *
- * Copyright (C) 1998 - 2019, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2020, 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
@@ -89,6 +89,6 @@ int main(int argc, char **argv)
     pthread_join(tid[i], NULL);
     fprintf(stderr, "Thread %d terminated\n", i);
   }
-
+  curl_global_cleanup();
   return 0;
 }