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
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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;