diff options
author | Max Kellermann <max@musicpd.org> | 2017-01-08 13:24:58 +0100 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2017-01-08 13:51:53 +0100 |
commit | 13b85edbe2cb9bb864b819c41e79ac2cb1b78994 (patch) | |
tree | 51f9bb15a24a5169c907fa0c2c75ab301b086285 /src/lib | |
parent | dc53098e43b95c08f80fa9b383e8e33f2d69e89e (diff) |
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.
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/curl/Request.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/curl/Request.cxx b/src/lib/curl/Request.cxx index 84ea59b3b..ac791aa06 100644 --- a/src/lib/curl/Request.cxx +++ b/src/lib/curl/Request.cxx @@ -151,7 +151,7 @@ CurlRequest::FinishBody() void CurlRequest::Done(CURLcode result) { - FreeEasy(); + Stop(); try { if (result != CURLE_OK) { |