diff options
-rw-r--r-- | apps/encryption/lib/Command/DropLegacyFileKey.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/apps/encryption/lib/Command/DropLegacyFileKey.php b/apps/encryption/lib/Command/DropLegacyFileKey.php index acfb7c334ee..f0a5f36f30f 100644 --- a/apps/encryption/lib/Command/DropLegacyFileKey.php +++ b/apps/encryption/lib/Command/DropLegacyFileKey.php @@ -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); + } } } |