summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2020-06-29 08:59:34 +0200
committerDaniel Stenberg <daniel@haxx.se>2020-06-29 08:59:34 +0200
commit98a8871659d6057c30fc667586ad48d095ccaa75 (patch)
tree7880e75148711389c8e892b28a9ff731ce1aca8b
parent40b4fdb88fdec3627147129d1f71a815842ec638 (diff)
downloadcurl-bagder/multithread-global-cleanup.tar.gz
examples/multithread.c: call curl_global_cleanup()bagder/multithread-global-cleanup
Reported-by: qiandu2006 on github Fixes #5622
-rw-r--r--docs/examples/multithread.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/examples/multithread.c b/docs/examples/multithread.c
index da07a1686..5777e5c03 100644
--- a/docs/examples/multithread.c
+++ b/docs/examples/multithread.c
@@ -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;
}