aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDan Fandrich <dan@coneharvesters.com>2014-07-07 23:12:22 +0200
committerDan Fandrich <dan@coneharvesters.com>2014-07-09 23:55:12 +0200
commit1cef8f0bc3de6374ffb2f573dc825c01bf7f9636 (patch)
tree3f474186652c5e0eacfa829f73285d2829cdcb59 /lib
parent3ae2b6cd7ff6eda5c6856efb6b2cdf52b61e980c (diff)
url.c: Fixed memory leak on OOM
This showed itself on some systems with torture failures in tests 1060 and 1061
Diffstat (limited to 'lib')
-rw-r--r--lib/url.c1
1 files changed, 1 insertions, 0 deletions
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);
}