mirror of
https://github.com/curl/curl.git
synced 2026-05-05 14:07:29 +03:00
if the DO operation returns failure, bail out and close down nicely to
prevent memory leakage
This commit is contained in:
parent
ed3176dd6b
commit
686d767053
1 changed files with 7 additions and 0 deletions
|
|
@ -462,6 +462,13 @@ CURLMcode curl_multi_perform(CURLM *multi_handle, int *running_handles)
|
|||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
/* failure detected */
|
||||
Curl_posttransfer(easy->easy_handle);
|
||||
Curl_done(&easy->easy_conn, easy->result);
|
||||
Curl_disconnect(easy->easy_conn); /* close the connection */
|
||||
easy->easy_conn = NULL; /* no more connection */
|
||||
}
|
||||
break;
|
||||
|
||||
case CURLM_STATE_DO_MORE:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue