diff options
Diffstat (limited to 'tests/libtest/lib524.c')
-rw-r--r-- | tests/libtest/lib524.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/libtest/lib524.c b/tests/libtest/lib524.c index c8b07834a..0b3ec5845 100644 --- a/tests/libtest/lib524.c +++ b/tests/libtest/lib524.c @@ -28,12 +28,14 @@ int test(char *URL) return TEST_ERR_MAJOR_BAD; } - curl_easy_setopt(curl, CURLOPT_URL, URL); - curl_easy_setopt(curl, CURLOPT_UPLOAD, 1L); - curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L); + test_setopt(curl, CURLOPT_URL, URL); + test_setopt(curl, CURLOPT_UPLOAD, 1L); + test_setopt(curl, CURLOPT_VERBOSE, 1L); res = curl_easy_perform(curl); +test_cleanup: + curl_easy_cleanup(curl); curl_global_cleanup(); |