summaryrefslogtreecommitdiff
path: root/app/Core
diff options
context:
space:
mode:
authorFrédéric Guillot <fred@kanboard.net>2019-06-04 16:40:58 -0700
committerFrédéric Guillot <fred@kanboard.net>2019-06-04 16:40:58 -0700
commit9eb42aae335ed8f5f5e9e8efb11ac71155ca3e81 (patch)
tree1f15fa07bb7301e0007768daa924bac654ea473c /app/Core
parent4ebcf84d47666bc649bd6a0624bd2ab0d3f4a405 (diff)
Add missing curl_close()
Diffstat (limited to 'app/Core')
-rw-r--r--app/Core/Http/Client.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/Core/Http/Client.php b/app/Core/Http/Client.php
index d875fe67..cc6c5b20 100644
--- a/app/Core/Http/Client.php
+++ b/app/Core/Http/Client.php
@@ -282,6 +282,7 @@ class Client extends Base
$statusCode = curl_getinfo($curlSession, CURLINFO_RESPONSE_CODE);
if ($statusCode >= 400) {
+ curl_close($curlSession);
throw new InvalidStatusException('Request failed with status code '.$statusCode, $statusCode, $body);
}
}