summaryrefslogtreecommitdiff
path: root/services/tag2tagservice.php
diff options
context:
space:
mode:
authormensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>2009-02-03 15:32:23 +0000
committermensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>2009-02-03 15:32:23 +0000
commitc0e46287e41ac5be4c4832c915c8e2ba78b9a1d5 (patch)
tree98aef584a8d4b91c5a618bbbfa11953cba4ad9c2 /services/tag2tagservice.php
parent4aaef1823e5e37f02bc18078ccb67217b8cdbcb7 (diff)
downloadsemanticscuttle-c0e46287e41ac5be4c4832c915c8e2ba78b9a1d5.tar.gz
semanticscuttle-c0e46287e41ac5be4c4832c915c8e2ba78b9a1d5.tar.bz2
Refactoring: free few sql results
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@247 b3834d28-1941-0410-a4f8-b48e95affb8f
Diffstat (limited to 'services/tag2tagservice.php')
-rw-r--r--services/tag2tagservice.php12
1 files changed, 9 insertions, 3 deletions
diff --git a/services/tag2tagservice.php b/services/tag2tagservice.php
index 01df423..1547daf 100644
--- a/services/tag2tagservice.php
+++ b/services/tag2tagservice.php
@@ -88,6 +88,7 @@ class Tag2TagService {
//$output = array_unique($output); // remove duplication
}
+ $this->db->sql_freeresult($dbresult);
return $output;
}
@@ -209,7 +210,9 @@ class Tag2TagService {
message_die(GENERAL_ERROR, 'Could not get linked tags', '', __LINE__, __FILE__, $query, $this->db);
return false;
}
- return $this->db->sql_fetchrowset($dbresult);
+ $output = $this->db->sql_fetchrowset($dbresult);
+ $this->db->sql_freeresult($dbresult);
+ return $output;
}
function getMenuTags($uId) {
@@ -232,7 +235,9 @@ class Tag2TagService {
message_die(GENERAL_ERROR, 'Could not get linked tags', '', __LINE__, __FILE__, $query, $this->db);
return false;
}
- return $this->db->sql_fetchrowset($dbresult);
+ $output = $this->db->sql_fetchrowset($dbresult);
+ $this->db->sql_freeresult($dbresult);
+ return $output;
}
}
@@ -284,7 +289,8 @@ class Tag2TagService {
// Update stats and cache
$this->update($tag1, $tag2, $relationType, $uId);
-
+
+ $this->db->sql_freeresult($dbresult);
return true;
}