explicitly close source stream on object store upload even if count wrapper isn't needed
Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
parent
22ba8fa78d
commit
ef6f2e68f0
|
@ -493,6 +493,9 @@ class ObjectStoreStorage extends \OC\Files\Storage\Common {
|
||||||
$stat['size'] = $size;
|
$stat['size'] = $size;
|
||||||
} else {
|
} else {
|
||||||
$this->objectStore->writeObject($urn, $stream, $mimetype);
|
$this->objectStore->writeObject($urn, $stream, $mimetype);
|
||||||
|
if (is_resource($stream)) {
|
||||||
|
fclose($stream);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} catch (\Exception $ex) {
|
} catch (\Exception $ex) {
|
||||||
if (!$exists) {
|
if (!$exists) {
|
||||||
|
|
Loading…
Reference in New Issue