reinsert some statements removed by r74745
authorAntoine Musso <hashar@users.mediawiki.org>
Sat, 6 Nov 2010 11:30:21 +0000 (11:30 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Sat, 6 Nov 2010 11:30:21 +0000 (11:30 +0000)
You removed a free() statement in filerepo/LocalRepo.php
In Wiki.php the explicit $ret = null was welcomed

includes/Wiki.php
includes/filerepo/LocalRepo.php

index c31a6ab..ff80a97 100644 (file)
@@ -108,6 +108,7 @@ class MediaWiki {
                if( $wgRequest->getVal( 'printable' ) === 'yes' ) {
                        $wgOut->setPrintable();
                }
+               $ret = null;
                $curid = $wgRequest->getInt( 'curid' );
                if( $curid ) {
                        // URLs like this are generated by RC, because rc_title isn't always accurate
index 50a83f6..e556887 100644 (file)
@@ -167,6 +167,7 @@ class LocalRepo extends FSRepo {
                foreach ( $res as $row ) {
                        $result[] = $this->newFileFromRow( $row );
                }
+               $res->free();
 
                return $result;
        }