1
0
mirror of https://github.com/moparisthebest/curl synced 2024-08-13 17:03:50 -04:00

Curl_follow: remove remaining free(newurl)

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

Reported-by: Michael Kaufmann
Bug: 05564e750e (commitcomm)
ent-30985666
This commit is contained in:
Daniel Stenberg 2018-10-21 23:50:13 +02:00
parent 06d8f16b87
commit ca10fae6fc
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -1502,10 +1502,8 @@ CURLcode Curl_follow(struct Curl_easy *data,
}
data->change.referer = strdup(data->change.url);
if(!data->change.referer) {
free(newurl);
if(!data->change.referer)
return CURLE_OUT_OF_MEMORY;
}
data->change.referer_alloc = TRUE; /* yes, free this later */
}
}