aboutsummaryrefslogtreecommitdiff
path: root/tests/libtest/lib500.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/libtest/lib500.c')
-rw-r--r--tests/libtest/lib500.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/libtest/lib500.c b/tests/libtest/lib500.c
index 14a8e7aeb..c0cc9dee5 100644
--- a/tests/libtest/lib500.c
+++ b/tests/libtest/lib500.c
@@ -29,8 +29,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);
@@ -44,6 +44,8 @@ int test(char *URL)
}
}
+test_cleanup:
+
curl_easy_cleanup(curl);
curl_global_cleanup();