summaryrefslogtreecommitdiff
path: root/tests/unit/unit1660.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/unit1660.c')
-rw-r--r--tests/unit/unit1660.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/unit/unit1660.c b/tests/unit/unit1660.c
index 3e9b1a40e..a9b2ea075 100644
--- a/tests/unit/unit1660.c
+++ b/tests/unit/unit1660.c
@@ -125,9 +125,14 @@ UNITTEST_START
CURL *easy;
if(!h)
return 1;
+
+ curl_global_init(CURL_GLOBAL_ALL);
easy = curl_easy_init();
- if(!easy)
+ if(!easy) {
+ Curl_hsts_cleanup(&h);
+ curl_global_cleanup();
return 1;
+ }
Curl_hsts_loadfile(easy, h, "log/input1660");
@@ -165,6 +170,7 @@ UNITTEST_START
(void)Curl_hsts_save(easy, h, "log/hsts1660");
Curl_hsts_cleanup(&h);
curl_easy_cleanup(easy);
+ curl_global_cleanup();
return unitfail;
}
UNITTEST_STOP