lib/curl/Request: postpone the curl_easy_cleanup() call
When the request is done, only unregister the CURL* handle, but do not delete it yet - it may still be needed for CURLINFO_RESPONSE_CODE.
This commit is contained in:
parent
dc53098e43
commit
13b85edbe2
@ -151,7 +151,7 @@ CurlRequest::FinishBody()
|
|||||||
void
|
void
|
||||||
CurlRequest::Done(CURLcode result)
|
CurlRequest::Done(CURLcode result)
|
||||||
{
|
{
|
||||||
FreeEasy();
|
Stop();
|
||||||
|
|
||||||
try {
|
try {
|
||||||
if (result != CURLE_OK) {
|
if (result != CURLE_OK) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user