aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>2009-10-25 15:34:13 +0000
committercweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>2009-10-25 15:34:13 +0000
commitef16c76ce63fd498a7bef4eb7dbf023b21362637 (patch)
tree39b6d08f917efa7571162cda7181f0864435b3c0
parent05defe72d8739c0642c506175c0ad4de2293fb99 (diff)
downloadsemanticscuttle-ef16c76ce63fd498a7bef4eb7dbf023b21362637.tar.gz
semanticscuttle-ef16c76ce63fd498a7bef4eb7dbf023b21362637.tar.bz2
free some results in commondescription service
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@411 b3834d28-1941-0410-a4f8-b48e95affb8f
-rw-r--r--src/SemanticScuttle/Service/CommonDescription.php8
1 files 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;