diff options
author | Yang Tse <yangsita@gmail.com> | 2006-10-10 23:50:37 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2006-10-10 23:50:37 +0000 |
commit | 8274447dd9ad74bf179973679250175f29b174e9 (patch) | |
tree | 0764838e039baa1afbe25481c225c2ebcfcce7e0 /tests/libtest/lib525.c | |
parent | 083a84e5d0fda642433df6108561cc084b306f58 (diff) | |
download | curl-8274447dd9ad74bf179973679250175f29b174e9.tar.gz |
Call curl_global_cleanup() in all code paths before exiting test
Diffstat (limited to 'tests/libtest/lib525.c')
-rw-r--r-- | tests/libtest/lib525.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/libtest/lib525.c b/tests/libtest/lib525.c index 240628028..9dcddaecf 100644 --- a/tests/libtest/lib525.c +++ b/tests/libtest/lib525.c @@ -45,9 +45,11 @@ int test(char *URL) /* get a curl handle */ curl = curl_easy_init(); - if(!curl) + if(!curl) { + fclose(hd_src); + curl_global_cleanup(); return 100; /* major bad */ - + } /* enable uploading */ curl_easy_setopt(curl, CURLOPT_UPLOAD, TRUE) ; |