From d1b56d00439ab26d7fc43e37ab18ae331ddc400d Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 7 Oct 2014 13:57:13 +0200 Subject: 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. --- lib/multi.c | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/multi.c') 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 { -- cgit v1.2.3