mirror of
https://github.com/curl/curl.git
synced 2025-02-17 14:59:45 +08:00
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.
This commit is contained in:
parent
6352df87b1
commit
d1b56d0043
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user