mirror of
https://github.com/curl/curl.git
synced 2025-09-17 17:42:49 +03:00
Curl_follow: remove remaining free(newurl)
Follow-up to05564e750e
. This function no longer frees the passed-in URL. Reported-by: Michael Kaufmann Bug:05564e750e (commitcomm)
ent-30985666
This commit is contained in:
parent
06d8f16b87
commit
ca10fae6fc
|
@ -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 */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user