mirror of
https://github.com/curl/curl.git
synced 2026-05-06 00:17:29 +03:00
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
1 changed files with 1 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue