diff options
author | Frédéric Guillot <fred@kanboard.net> | 2019-06-04 16:40:58 -0700 |
---|---|---|
committer | Frédéric Guillot <fred@kanboard.net> | 2019-06-04 16:40:58 -0700 |
commit | 9eb42aae335ed8f5f5e9e8efb11ac71155ca3e81 (patch) | |
tree | 1f15fa07bb7301e0007768daa924bac654ea473c | |
parent | 4ebcf84d47666bc649bd6a0624bd2ab0d3f4a405 (diff) |
Add missing curl_close()
-rw-r--r-- | app/Core/Http/Client.php | 1 |
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); } } |