diff --git a/spaces.php b/spaces.php index 7da19ac..587147f 100644 --- a/spaces.php +++ b/spaces.php @@ -281,6 +281,10 @@ class SpacesConnect { } catch (\Exception $e) { $this->HandleAWSException($e); + } finally { + if (is_file($pathToFile)) { + fclose($file); + } } }