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:
parent
74f911d463
commit
ff3876046e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user