Skip to content
Snippets Groups Projects
Commit 686d7670 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

if the DO operation returns failure, bail out and close down nicely to

prevent memory leakage
parent ed3176dd
No related branches found
No related tags found
No related merge requests found
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment