Skip to content
Snippets Groups Projects
Unverified Commit ff387604 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

unit1654: cleanup on memory failure

... to make it handle torture tests properly.

Reported-by: Marcel Raad
Fixes #4021
Closes #4022
parent 74f911d4
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment