From: Dan Fandrich Date: Mon, 7 Jul 2014 21:12:22 +0000 (+0200) Subject: url.c: Fixed memory leak on OOM X-Git-Tag: curl-7_37_1~28 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1cef8f0bc3de6374ffb2f573dc825c01bf7f9636;p=curl url.c: Fixed memory leak on OOM This showed itself on some systems with torture failures in tests 1060 and 1061 --- diff --git a/lib/url.c b/lib/url.c index 27b376f9c..87ebe0086 100644 --- a/lib/url.c +++ b/lib/url.c @@ -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); }