From 89d37575a377cbc7a0dcde65ab7e2752e40c60c8 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Fri, 18 Nov 2016 12:19:49 +0100 Subject: [PATCH] close the file handle after readfile Signed-off-by: Robin Appelman --- lib/private/Files/View.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/private/Files/View.php b/lib/private/Files/View.php index 3514c829691..7866f90157e 100644 --- a/lib/private/Files/View.php +++ b/lib/private/Files/View.php @@ -431,6 +431,7 @@ class View { echo fread($handle, $chunkSize); flush(); } + fclose($handle); $size = $this->filesize($path); return $size; } -- 2.39.5