From: Tim Starling Date: Mon, 8 Mar 2004 09:37:53 +0000 (+0000) Subject: freeing a result object X-Git-Tag: 1.3.0beta1~836 X-Git-Url: http://git.cyclocoop.org/%22.%24h.%22?a=commitdiff_plain;h=c96c50760a97f73804751b5ad8a7f85ac69e2a67;p=lhc%2Fweb%2Fwiklou.git freeing a result object --- diff --git a/includes/Database.php b/includes/Database.php index 568f87a39f..8acd3d7511 100644 --- a/includes/Database.php +++ b/includes/Database.php @@ -237,7 +237,9 @@ class Database { if ( $res === false || !$this->numRows( $res ) ) { return false; } - return $this->fetchObject( $res ); + $obj = $this->fetchObject( $res ); + $this->freeResult( $res ); + return $obj; } # Removes most variables from an SQL query and replaces them with X or N for numbers.