From c468c27b5a8abb8134b3f89439aaac45f37d22d7 Mon Sep 17 00:00:00 2001 From: Dan Fandrich Date: Sat, 19 Aug 2017 21:27:38 +0200 Subject: tests: Make sure libtests call curl_global_cleanup() This ensures that global data allocations are freed so Valgrind stays happy. This was a problem with at least PolarSSL and mbedTLS. --- tests/libtest/lib597.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'tests/libtest/lib597.c') diff --git a/tests/libtest/lib597.c b/tests/libtest/lib597.c index 813af7541..bace92cbe 100644 --- a/tests/libtest/lib597.c +++ b/tests/libtest/lib597.c @@ -60,10 +60,7 @@ int test(char *URL) start_test_timing(); - res_global_init(CURL_GLOBAL_ALL); - if(res) { - return res; - } + global_init(CURL_GLOBAL_ALL); easy_init(easy); -- cgit v1.2.3