From 8274447dd9ad74bf179973679250175f29b174e9 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Tue, 10 Oct 2006 23:50:37 +0000 Subject: Call curl_global_cleanup() in all code paths before exiting test --- tests/libtest/lib533.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tests/libtest/lib533.c') diff --git a/tests/libtest/lib533.c b/tests/libtest/lib533.c index a4b6877ef..74499c232 100644 --- a/tests/libtest/lib533.c +++ b/tests/libtest/lib533.c @@ -29,8 +29,10 @@ int test(char *URL) curl_global_init(CURL_GLOBAL_ALL); curl = curl_easy_init(); - if(!curl) + if(!curl) { + curl_global_cleanup(); return 100; /* major bad */ + } curl_easy_setopt(curl, CURLOPT_URL, URL); curl_easy_setopt(curl, CURLOPT_VERBOSE, 1); -- cgit v1.2.3