From d7d0c9d9538df7f78b83cc91da8ec96c7d160f6a Mon Sep 17 00:00:00 2001 From: Dan Fandrich Date: Sat, 26 Aug 2017 22:01:42 +0200 Subject: tests: Make sure libtests & unittests call curl_global_cleanup() These were missed in commit c468c27b. --- tests/libtest/lib1515.c | 1 + tests/libtest/mk-lib1521.pl | 2 ++ 2 files changed, 3 insertions(+) (limited to 'tests/libtest') diff --git a/tests/libtest/lib1515.c b/tests/libtest/lib1515.c index c1499381a..4b41dc2e4 100644 --- a/tests/libtest/lib1515.c +++ b/tests/libtest/lib1515.c @@ -148,6 +148,7 @@ int test(char *URL) test_cleanup: curl_multi_cleanup(multi); + curl_global_cleanup(); return (int) res; } diff --git a/tests/libtest/mk-lib1521.pl b/tests/libtest/mk-lib1521.pl index e60bce5cc..f5c68eb10 100644 --- a/tests/libtest/mk-lib1521.pl +++ b/tests/libtest/mk-lib1521.pl @@ -157,6 +157,7 @@ int test(char *URL) struct curl_tlssessioninfo *tlssession; CURLcode res = CURLE_OK; (void)URL; /* not used */ + global_init(CURL_GLOBAL_ALL); easy_init(dep); easy_init(curl); share = curl_share_init(); @@ -296,6 +297,7 @@ test_cleanup: curl_easy_cleanup(curl); curl_easy_cleanup(dep); curl_share_cleanup(share); + curl_global_cleanup(); return (int)res; } -- cgit v1.2.3