Commit 13b85edb authored by Max Kellermann's avatar Max Kellermann

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.
parent dc53098e
......@@ -151,7 +151,7 @@ CurlRequest::FinishBody()
void
CurlRequest::Done(CURLcode result)
{
FreeEasy();
Stop();
try {
if (result != CURLE_OK) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment