mirror of
https://github.com/moparisthebest/curl
synced 2024-12-23 16:48: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:
parent
74f911d463
commit
ff3876046e
@ -53,8 +53,10 @@ UNITTEST_START
|
|||||||
if(!asi)
|
if(!asi)
|
||||||
return 1;
|
return 1;
|
||||||
result = Curl_altsvc_load(asi, arg);
|
result = Curl_altsvc_load(asi, arg);
|
||||||
if(result)
|
if(result) {
|
||||||
|
Curl_altsvc_cleanup(asi);
|
||||||
return result;
|
return result;
|
||||||
|
}
|
||||||
curl = curl_easy_init();
|
curl = curl_easy_init();
|
||||||
if(!curl)
|
if(!curl)
|
||||||
goto fail;
|
goto fail;
|
||||||
|
Loading…
Reference in New Issue
Block a user