From c96c50760a97f73804751b5ad8a7f85ac69e2a67 Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Mon, 8 Mar 2004 09:37:53 +0000 Subject: [PATCH] freeing a result object --- includes/Database.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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. -- 2.20.1