aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2014-10-07 13:57:13 +0200
committerDaniel Stenberg <daniel@haxx.se>2014-10-07 13:57:13 +0200
commitd1b56d00439ab26d7fc43e37ab18ae331ddc400d (patch)
tree942ec8d369d8f25b555471f9440e1072213af9c0
parent6352df87b16655638f2a9b47622f7683da671f26 (diff)
multi_runsingle: fix possible memory leak
Coverity CID 1202837. 'newurl' can in fact be allocated even when Curl_retry_request() returns failure so free it if need be.
-rw-r--r--lib/multi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/multi.c b/lib/multi.c
index ed2920c53..04aba9d0f 100644
--- a/lib/multi.c
+++ b/lib/multi.c
@@ -1365,6 +1365,7 @@ static CURLMcode multi_runsingle(struct Curl_multi *multi,
else {
/* Have error handler disconnect conn if we can't retry */
disconnect_conn = TRUE;
+ free(newurl);
}
}
else {