From ef16c76ce63fd498a7bef4eb7dbf023b21362637 Mon Sep 17 00:00:00 2001 From: cweiske Date: Sun, 25 Oct 2009 15:34:13 +0000 Subject: [PATCH] free some results in commondescription service git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@411 b3834d28-1941-0410-a4f8-b48e95affb8f --- src/SemanticScuttle/Service/CommonDescription.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/SemanticScuttle/Service/CommonDescription.php b/src/SemanticScuttle/Service/CommonDescription.php index d9aa814..75a67c0 100644 --- a/src/SemanticScuttle/Service/CommonDescription.php +++ b/src/SemanticScuttle/Service/CommonDescription.php @@ -56,6 +56,7 @@ class SemanticScuttle_Service_CommonDescription extends SemanticScuttle_DbServic } if ($row =& $this->db->sql_fetchrow($dbresult)) { + $this->db->sql_freeresult($dbresult); return $row; } else { return false; @@ -73,8 +74,9 @@ class SemanticScuttle_Service_CommonDescription extends SemanticScuttle_DbServic return false; } - return $this->db->sql_fetchrowset($dbresult); - + $res = $this->db->sql_fetchrowset($dbresult); + $this->db->sql_freeresult($dbresult); + return $res; } function getDescriptionById($cdId) { @@ -88,6 +90,7 @@ class SemanticScuttle_Service_CommonDescription extends SemanticScuttle_DbServic } if ($row =& $this->db->sql_fetchrow($dbresult)) { + $this->db->sql_freeresult($dbresult); return $row; } else { return false; @@ -127,6 +130,7 @@ class SemanticScuttle_Service_CommonDescription extends SemanticScuttle_DbServic } if ($row =& $this->db->sql_fetchrow($dbresult)) { + $this->db->sql_freeresult($dbresult); return $row; } else { return false;