mirror of
https://github.com/nextcloud/server.git
synced 2026-06-12 10:10:49 -04:00
explicitly close source stream on object store upload even if countwrapper isn't needed
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
This commit is contained in:
parent
d3ab9f2785
commit
e47903d3ea
1 changed files with 3 additions and 0 deletions
|
|
@ -493,6 +493,9 @@ class ObjectStoreStorage extends \OC\Files\Storage\Common {
|
|||
$stat['size'] = $size;
|
||||
} else {
|
||||
$this->objectStore->writeObject($urn, $stream);
|
||||
if (is_resource($stream)) {
|
||||
fclose($stream);
|
||||
}
|
||||
}
|
||||
} catch (\Exception $ex) {
|
||||
if (!$exists) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue