diff --git a/src/Composer/Command/CreateProjectCommand.php b/src/Composer/Command/CreateProjectCommand.php index 9ed7cd44a..22ae23f73 100644 --- a/src/Composer/Command/CreateProjectCommand.php +++ b/src/Composer/Command/CreateProjectCommand.php @@ -142,6 +142,7 @@ EOT $package = $candidate; } } + unset($candidates); $io->write('Installing ' . $package->getName() . ' (' . VersionParser::formatVersion($package, false) . ')', true); @@ -164,6 +165,10 @@ EOT putenv('COMPOSER_ROOT_VERSION='.$package->getPrettyVersion()); + // clean up memory + unset($dm, $config, $projectInstaller, $sourceRepo, $package); + + // install dependencies of the created project $composer = Factory::create($io); $installer = Installer::create($io, $composer);