mirror of
https://github.com/moparisthebest/curl
synced 2024-11-12 04:25:08 -05: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);
|
||||
if(!data->change.referer) {
|
||||
free(newurl);
|
||||
if(!data->change.referer)
|
||||
return CURLE_OUT_OF_MEMORY;
|
||||
}
|
||||
data->change.referer_alloc = TRUE; /* yes, free this later */
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user