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/unit1600.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'tests/unit/unit1600.c') diff --git a/tests/unit/unit1600.c b/tests/unit/unit1600.c index 11d718d35..190cf0f0a 100644 --- a/tests/unit/unit1600.c +++ b/tests/unit/unit1600.c @@ -28,13 +28,19 @@ static CURL *easy; static CURLcode unit_setup(void) { + int res = CURLE_OK; + + global_init(CURL_GLOBAL_ALL); easy = curl_easy_init(); - return easy ? CURLE_OK : CURLE_OUT_OF_MEMORY; + if(!easy) + return CURLE_OUT_OF_MEMORY; + return res; } static void unit_stop(void) { curl_easy_cleanup(easy); + curl_global_cleanup(); } UNITTEST_START -- cgit v1.2.3