mirror of
https://github.com/curl/curl.git
synced 2026-04-20 05:41:14 +03:00
multi: fix memory-leak on timeout (regression)
Since 1342a96ecf, a timeout detected in the multi state machine didn't
necesarily clear everything up, like formpost data.
Bug: https://github.com/bagder/curl/issues/147
Reported-by: Michel Promonet
Patched-by: Michel Promonet
This commit is contained in:
parent
64736dd1be
commit
492dfca65d
1 changed files with 1 additions and 0 deletions
|
|
@ -1016,6 +1016,7 @@ static CURLMcode multi_runsingle(struct Curl_multi *multi,
|
|||
disconnect_conn = TRUE;
|
||||
}
|
||||
result = CURLE_OPERATION_TIMEDOUT;
|
||||
(void)Curl_done(&data->easy_conn, result, TRUE);
|
||||
/* Skip the statemachine and go directly to error handling section. */
|
||||
goto statemachine_end;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue