]> gitweb.fluxo.info Git - semanticscuttle.git/commitdiff
free some results in commondescription service
authorcweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>
Sun, 25 Oct 2009 15:34:13 +0000 (15:34 +0000)
committercweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>
Sun, 25 Oct 2009 15:34:13 +0000 (15:34 +0000)
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@411 b3834d28-1941-0410-a4f8-b48e95affb8f

src/SemanticScuttle/Service/CommonDescription.php

index d9aa8143e917863f63ee081d9836f2207acbc003..75a67c011497334cc131f51d3e99bdfc28334ebe 100644 (file)
@@ -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;