summaryrefslogtreecommitdiff
path: root/tests/libtest/lib566.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/libtest/lib566.c')
-rw-r--r--tests/libtest/lib566.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/libtest/lib566.c b/tests/libtest/lib566.c
index e2cbe7769..03ad1ec75 100644
--- a/tests/libtest/lib566.c
+++ b/tests/libtest/lib566.c
@@ -30,8 +30,8 @@ int test(char *URL)
return TEST_ERR_MAJOR_BAD;
}
- curl_easy_setopt(curl, CURLOPT_URL, URL);
- curl_easy_setopt(curl, CURLOPT_HEADER, 1L);
+ test_setopt(curl, CURLOPT_URL, URL);
+ test_setopt(curl, CURLOPT_HEADER, 1L);
res = curl_easy_perform(curl);
@@ -46,6 +46,8 @@ int test(char *URL)
}
}
+test_cleanup:
+
curl_easy_cleanup(curl);
curl_global_cleanup();