aboutsummaryrefslogtreecommitdiff
path: root/tests/libtest/lib512.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2006-10-25 05:59:46 +0000
committerYang Tse <yangsita@gmail.com>2006-10-25 05:59:46 +0000
commit384c8f356087178e4779d99d3e0e7f25331293aa (patch)
tree7b7d5aec819f6f47ccc3b28d7390ae62c036535b /tests/libtest/lib512.c
parentf44ef427a2fbe506a35548ebab2b503438d6a027 (diff)
Use curl_global_init() and curl_global_cleanup().
Improve cleanup in case of initialization failure.
Diffstat (limited to 'tests/libtest/lib512.c')
-rw-r--r--tests/libtest/lib512.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/libtest/lib512.c b/tests/libtest/lib512.c
index d52baa6d0..f8edbd37d 100644
--- a/tests/libtest/lib512.c
+++ b/tests/libtest/lib512.c
@@ -43,6 +43,8 @@ int test(char *URL)
}
else
rc = 4;
+
+ curl_global_cleanup();
}
else
rc = 5;