mirror of
https://github.com/curl/curl.git
synced 2026-07-16 14:27:16 +03: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
1 changed files with 3 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue