dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8bb589d
)
freeing a result object
author
Tim Starling
<tstarling@users.mediawiki.org>
Mon, 8 Mar 2004 09:37:53 +0000
(09:37 +0000)
committer
Tim Starling
<tstarling@users.mediawiki.org>
Mon, 8 Mar 2004 09:37:53 +0000
(09:37 +0000)
includes/Database.php
patch
|
blob
|
history
diff --git
a/includes/Database.php
b/includes/Database.php
index
568f87a
..
8acd3d7
100644
(file)
--- 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.