summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2016-11-18 14:58:03 +0100
committerGitHub <noreply@github.com>2016-11-18 14:58:03 +0100
commitcc500c28103aff63f23ebe245d9b267aab91af10 (patch)
treeda3d1eb8d5c2f1eceee1ef7ea8be571839053d62 /lib
parent8b9ad46ba3ef876f00dc6bdadd7b51d7b1fa1c78 (diff)
parent89d37575a377cbc7a0dcde65ab7e2752e40c60c8 (diff)
downloadnextcloud-server-cc500c28103aff63f23ebe245d9b267aab91af10.tar.gz
nextcloud-server-cc500c28103aff63f23ebe245d9b267aab91af10.zip
Merge pull request #2199 from nextcloud/readfile-close-handle
close the file handle after readfile
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Files/View.php1
1 files changed, 1 insertions, 0 deletions
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;
}