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/unit/unit1396.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'tests/unit/unit1396.c') diff --git a/tests/unit/unit1396.c b/tests/unit/unit1396.c index f3275fdb6..9fba1f634 100644 --- a/tests/unit/unit1396.c +++ b/tests/unit/unit1396.c @@ -25,13 +25,17 @@ static CURL *hnd; static CURLcode unit_setup(void) { - return CURLE_OK; + int res = CURLE_OK; + + global_init(CURL_GLOBAL_ALL); + return res; } static void unit_stop(void) { if(hnd) curl_easy_cleanup(hnd); + curl_global_cleanup(); } struct test { -- cgit v1.2.3