url.c: Fixed memory leak on OOM
This showed itself on some systems with torture failures in tests 1060 and 1061
This commit is contained in:
parent
3ae2b6cd7f
commit
1cef8f0bc3
@ -4149,6 +4149,7 @@ static CURLcode setup_connection_internals(struct connectdata *conn)
|
|||||||
void Curl_free_request_state(struct SessionHandle *data)
|
void Curl_free_request_state(struct SessionHandle *data)
|
||||||
{
|
{
|
||||||
Curl_safefree(data->req.protop);
|
Curl_safefree(data->req.protop);
|
||||||
|
Curl_safefree(data->req.newurl);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user