Commit 6f3ef948 authored by Dan Fandrich's avatar Dan Fandrich
Browse files

Fixed another OOM problem, this time with test 64.

parent 08ac9866
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -2386,8 +2386,11 @@ CURLcode Curl_perform(struct SessionHandle *data)
        if(res == CURLE_OK) {
          bool retry = Curl_retry_request(conn, &newurl);

          if(retry)
          if(retry) {
            follow = FOLLOW_RETRY;
            if (!newurl)
              res = CURLE_OUT_OF_MEMORY;
          }
          else {
            /*
             * We must duplicate the new URL here as the connection data may