summaryrefslogtreecommitdiff
path: root/tests/libtest/lib1568.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/libtest/lib1568.c')
-rw-r--r--tests/libtest/lib1568.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/libtest/lib1568.c b/tests/libtest/lib1568.c
index 2e5d88c70..87251d96f 100644
--- a/tests/libtest/lib1568.c
+++ b/tests/libtest/lib1568.c
@@ -28,6 +28,7 @@ int test(char *URL)
{
CURLcode ret;
CURL *hnd;
+ curl_global_init(CURL_GLOBAL_ALL);
hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_URL, URL);
@@ -44,6 +45,7 @@ int test(char *URL)
curl_easy_cleanup(hnd);
hnd = NULL;
+ curl_global_cleanup();
return (int)ret;
}