aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/unit/unit1654.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/unit/unit1654.c b/tests/unit/unit1654.c
index 7532c6d61..9d1a3e211 100644
--- a/tests/unit/unit1654.c
+++ b/tests/unit/unit1654.c
@@ -53,8 +53,10 @@ UNITTEST_START
if(!asi)
return 1;
result = Curl_altsvc_load(asi, arg);
- if(result)
+ if(result) {
+ Curl_altsvc_cleanup(asi);
return result;
+ }
curl = curl_easy_init();
if(!curl)
goto fail;