close the file handle after readfile

Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
Robin Appelman 2016-11-18 12:19:49 +01:00
parent c02b0199b0
commit 89d37575a3
No known key found for this signature in database
GPG Key ID: 425003AC385454C5
1 changed files with 1 additions and 0 deletions

View File

@ -431,6 +431,7 @@ class View {
echo fread($handle, $chunkSize); echo fread($handle, $chunkSize);
flush(); flush();
} }
fclose($handle);
$size = $this->filesize($path); $size = $this->filesize($path);
return $size; return $size;
} }