1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-23 08:38:49 -05:00

unit1654: cleanup on memory failure

... to make it handle torture tests properly.

Reported-by: Marcel Raad
Fixes #4021
Closes #4022
This commit is contained in:
Daniel Stenberg 2019-06-13 11:09:32 +02:00
parent 74f911d463
commit ff3876046e
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -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;