aboutsummaryrefslogtreecommitdiff
path: root/tests/libtest/lib525.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/libtest/lib525.c')
-rw-r--r--tests/libtest/lib525.c6
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) ;