mirror of
https://github.com/nextcloud/server.git
synced 2026-04-22 06:37:56 -04:00
Add fclose on opened resources
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
parent
a92028f5cd
commit
49108880d2
1 changed files with 7 additions and 0 deletions
|
|
@ -147,6 +147,13 @@ class DropLegacyFileKey extends Command {
|
|||
}
|
||||
$output->writeln('<error>Failed to migrate ' . $path . '</error>');
|
||||
$output->writeln('<error>' . $e . '</error>', OutputInterface::VERBOSITY_VERBOSE);
|
||||
} finally {
|
||||
if (is_resource($copyResource)) {
|
||||
fclose($copyResource);
|
||||
}
|
||||
if (is_resource($sourceResource)) {
|
||||
fclose($sourceResource);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue