mirror of
https://github.com/moparisthebest/curl
synced 2024-12-24 09:08:49 -05:00
parent
3455b4b374
commit
6afe70a00b
@ -1725,6 +1725,7 @@ static CURLMcode multi_runsingle(struct Curl_multi *multi,
|
||||
if(!drc || (drc == CURLE_SEND_ERROR)) {
|
||||
follow = FOLLOW_RETRY;
|
||||
drc = Curl_follow(data, newurl, follow);
|
||||
newurl = NULL; /* freed by Curl_follow() */
|
||||
if(!drc) {
|
||||
multistate(data, CURLM_STATE_CONNECT);
|
||||
rc = CURLM_CALL_MULTI_PERFORM;
|
||||
|
@ -1500,8 +1500,10 @@ CURLcode Curl_follow(struct Curl_easy *data,
|
||||
}
|
||||
|
||||
data->change.referer = strdup(data->change.url);
|
||||
if(!data->change.referer)
|
||||
if(!data->change.referer) {
|
||||
free(newurl);
|
||||
return CURLE_OUT_OF_MEMORY;
|
||||
}
|
||||
data->change.referer_alloc = TRUE; /* yes, free this later */
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user