From a3e0cd0886196acc411b5c3a28d0d63b526e8d62 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Tue, 17 Jul 2012 23:25:30 -0700 Subject: [PATCH] Free up some memory by unsetting large arrays in backend copy script. Change-Id: I55b6a6f8228370d948821dcd4de22fda51539fd0 --- maintenance/copyFileBackend.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/maintenance/copyFileBackend.php b/maintenance/copyFileBackend.php index 544f48b6c7..498bc6b00b 100644 --- a/maintenance/copyFileBackend.php +++ b/maintenance/copyFileBackend.php @@ -90,6 +90,8 @@ class CopyFileBackend extends Maintenance { // Only copy the missing files over in the next loop $srcPathsRel = array_diff( $relFilesSrc, $relFilesDst ); $this->output( count( $srcPathsRel ) . " file(s) need to be copied.\n" ); + unset( $relFilesSrc ); + unset( $relFilesDst ); } $batchPaths = array(); -- 2.20.1