Unverified Commit ca10fae6 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

Curl_follow: remove remaining free(newurl)

Follow-up to 05564e75. This function no longer frees the passed-in
URL.

Reported-by: Michael Kaufmann
Bug: https://github.com/curl/curl/commit/05564e750e8f0c79016c680f301ce251e6e86155#commitcomm
ent-30985666
parent 06d8f16b
Loading
Loading
Loading
Loading
+1 −3
Original line number Original line Diff line number Diff line
@@ -1502,10 +1502,8 @@ CURLcode Curl_follow(struct Curl_easy *data,
        }
        }


        data->change.referer = strdup(data->change.url);
        data->change.referer = strdup(data->change.url);
        if(!data->change.referer) {
        if(!data->change.referer)
          free(newurl);
          return CURLE_OUT_OF_MEMORY;
          return CURLE_OUT_OF_MEMORY;
        }
        data->change.referer_alloc = TRUE; /* yes, free this later */
        data->change.referer_alloc = TRUE; /* yes, free this later */
      }
      }
    }
    }