diff options
Diffstat (limited to 'tests/libtest/lib537.c')
-rw-r--r-- | tests/libtest/lib537.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/libtest/lib537.c b/tests/libtest/lib537.c index 7bb8c1436..791448a86 100644 --- a/tests/libtest/lib537.c +++ b/tests/libtest/lib537.c @@ -487,11 +487,13 @@ 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); +test_cleanup: + close_file_descriptors(); curl_easy_cleanup(curl); curl_global_cleanup(); |