diff options
author | Daniel Stenberg <daniel@haxx.se> | 2019-06-13 11:09:32 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2019-06-13 11:09:32 +0200 |
commit | a5f1d9e4557b363e07949a48849d639fc978a6b1 (patch) | |
tree | a6f8993f4a5283726ff92b71b4f9121a354a7f10 | |
parent | 9dd731c94e29e5422c5bd2811219a0987d4aeb91 (diff) | |
download | curl-bagder/test1654-torture.tar.gz |
unit1654: cleanup on memory failurebagder/test1654-torture
... to make it handle torture tests properly.
Reported-by: Marcel Raad
Fixes #4021
-rw-r--r-- | tests/unit/unit1654.c | 4 |
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; |