mirror of
https://github.com/moparisthebest/curl
synced 2024-12-24 17:18:48 -05:00
multi: fix location URL memleak in error path
Follow-up to #3044 - fix a leak OSS-Fuzz detected Closes #3057
This commit is contained in:
parent
f8215f80ab
commit
454fa3fd7b
@ -1984,7 +1984,10 @@ static CURLMcode multi_runsingle(struct Curl_multi *multi,
|
||||
else
|
||||
follow = FOLLOW_RETRY;
|
||||
result = multi_done(&data->easy_conn, CURLE_OK, FALSE);
|
||||
if(!result) {
|
||||
if(result)
|
||||
/* Curl_follow() would otherwise free this */
|
||||
free(newurl);
|
||||
else {
|
||||
result = Curl_follow(data, newurl, follow);
|
||||
if(!result) {
|
||||
multistate(data, CURLM_STATE_CONNECT);
|
||||
|
Loading…
Reference in New Issue
Block a user