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:
Dan Fandrich 2014-07-07 23:12:22 +02:00
parent 3ae2b6cd7f
commit 1cef8f0bc3

View File

@ -4149,6 +4149,7 @@ static CURLcode setup_connection_internals(struct connectdata *conn)
void Curl_free_request_state(struct SessionHandle *data)
{
Curl_safefree(data->req.protop);
Curl_safefree(data->req.newurl);
}