From 9eb42aae335ed8f5f5e9e8efb11ac71155ca3e81 Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Tue, 4 Jun 2019 16:40:58 -0700 Subject: Add missing curl_close() --- app/Core/Http/Client.php | 1 + 1 file changed, 1 insertion(+) (limited to 'app') 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); } } -- cgit v1.2.3