diff options
Diffstat (limited to 'tests/libtest/lib562.c')
-rw-r--r-- | tests/libtest/lib562.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/libtest/lib562.c b/tests/libtest/lib562.c index ffb0ce5f2..7f84a9aad 100644 --- a/tests/libtest/lib562.c +++ b/tests/libtest/lib562.c @@ -55,17 +55,19 @@ int test(char *URL) } /* enable verbose */ - curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L); + test_setopt(curl, CURLOPT_VERBOSE, 1L); /* set port number */ - curl_easy_setopt(curl, CURLOPT_PORT, atoi(libtest_arg2) ); + test_setopt(curl, CURLOPT_PORT, atoi(libtest_arg2) ); /* specify target */ - curl_easy_setopt(curl,CURLOPT_URL, URL); + test_setopt(curl,CURLOPT_URL, URL); /* Now run off and do what you've been told! */ res = curl_easy_perform(curl); +test_cleanup: + curl_easy_cleanup(curl); curl_global_cleanup(); |