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

even if Curl_do() fails, we must call Curl_done() to do proper cleaning up

parent 005042e9
No related branches found
No related tags found
No related merge requests found
......@@ -2029,6 +2029,9 @@ CURLcode Curl_perform(struct SessionHandle *data)
if(CURLE_OK == res)
res = res2;
}
else
/* Curl_do() failed, clean up left-overs in the done-call */
res2 = Curl_done(conn);
/*
* Important: 'conn' cannot be used here, since it may have been closed
......
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