Skip to content

Commit c7f9793

Browse files
author
Julien Veyssier
committed
close the resource used to download a file
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
1 parent 6241e7d commit c7f9793

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

lib/Service/DropboxStorageAPIService.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,9 @@ private function getFile(string $accessToken, string $refreshToken, string $clie
316316
}
317317
return null;
318318
}
319+
if (is_resource($resource)) {
320+
fclose($resource);
321+
}
319322
if (isset($fileItem['server_modified'])) {
320323
$d = new Datetime($fileItem['server_modified']);
321324
$ts = $d->getTimestamp();

0 commit comments

Comments
 (0)