close the file handle after readfile
Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
parent
c02b0199b0
commit
89d37575a3
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue