aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Obermann <obermann.lukas@gmail.com>2018-10-21 18:33:00 +0200
committerGitHub <noreply@github.com>2018-10-21 18:33:00 +0200
commiteb916e65df1d0d57a0d8036292e3a0078792635a (patch)
tree3dd7d5db5c4a123323780bbbd2f61f413d624af8
parentab2abe5745350e3270ac82af909e32af75e94bec (diff)
parent2c30f088637b8b894151ddae7d5d93fa0a9d1eb1 (diff)
Merge pull request #14587 from lobermann/missing_easy_release
CCurlFile::Stat missing easy_release on early return
-rw-r--r--xbmc/filesystem/CurlFile.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/xbmc/filesystem/CurlFile.cpp b/xbmc/filesystem/CurlFile.cpp
index 102f52ca35..3dc75d6b77 100644
--- a/xbmc/filesystem/CurlFile.cpp
+++ b/xbmc/filesystem/CurlFile.cpp
@@ -1442,7 +1442,11 @@ int CCurlFile::Stat(const CURL& url, struct __stat64* buffer)
{
long code;
if(g_curlInterface.easy_getinfo(m_state->m_easyHandle, CURLINFO_RESPONSE_CODE, &code) == CURLE_OK && code == 404 )
+ {
+ g_curlInterface.easy_release(&m_state->m_easyHandle, NULL);
+ errno = ENOENT;
return -1;
+ }
}
if(result == CURLE_GOT_NOTHING