mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
even if Curl_do() fails, we must call Curl_done() to do proper cleaning up
This commit is contained in:
parent
005042e973
commit
a219d774fe
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user