From c4f675fe847df5ffacd2e50a996c4925dc76e0bd Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Sun, 6 Jun 2021 21:11:48 +0200 Subject: [PATCH] Fix virtualbox filesystem issue when installing packages, fixes #9945 --- src/Composer/Util/Filesystem.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Composer/Util/Filesystem.php b/src/Composer/Util/Filesystem.php index f1c8d38eb..766a76c92 100644 --- a/src/Composer/Util/Filesystem.php +++ b/src/Composer/Util/Filesystem.php @@ -229,6 +229,9 @@ class Filesystem } } + // release locks on the directory, see https://github.com/composer/composer/issues/9945 + unset($ri, $it); + return $this->rmdir($directory); }