Commit b3d91a14 authored by Yang Tse's avatar Yang Tse
Browse files

multi.c: OOM handling fix

parent c59c5e8e
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -1616,8 +1616,9 @@ static CURLMcode multi_runsingle(struct Curl_multi *multi,
            newurl = data->req.location;
            data->req.location = NULL;
            easy->result = Curl_follow(data, newurl, FOLLOW_FAKE);
            newurl = NULL; /* allocation was handed over */
            if(easy->result)
            if(CURLE_OK == easy->result)
              newurl = NULL; /* allocation was handed over Curl_follow() */
            else
              disconnect_conn = TRUE;
          }