explicitly close source stream on upload without part file

Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
Robin Appelman 2021-04-29 16:51:04 +02:00
parent a3fb7914c5
commit edbda8411c
No known key found for this signature in database
GPG Key ID: 42B69D8A64526EFB
1 changed files with 1 additions and 0 deletions

View File

@ -224,6 +224,7 @@ class File extends Node implements IFile {
}
list($count, $result) = \OC_Helper::streamCopy($data, $target);
fclose($target);
fclose($data);
}
if ($result === false) {