aboutsummaryrefslogtreecommitdiff
path: root/services/bookmark2tagservice.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/bookmark2tagservice.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/bookmark2tagservice.php')
-rw-r--r--services/bookmark2tagservice.php12
1 files changed, 9 insertions, 3 deletions
diff --git a/services/bookmark2tagservice.php b/services/bookmark2tagservice.php
index 26abf4a..63f3d57 100644
--- a/services/bookmark2tagservice.php
+++ b/services/bookmark2tagservice.php
@@ -219,7 +219,7 @@ class Bookmark2TagService {
while ($row =& $this->db->sql_fetchrow($dbresult)) {
$tags[] = $row['tag'];
}
-
+ $this->db->sql_freeresult($dbresult);
return $tags;
}
@@ -246,6 +246,7 @@ class Bookmark2TagService {
}
$output = $this->db->sql_fetchrowset($dbresult);
+ $this->db->sql_freeresult($dbresult);
return $output;
}
@@ -292,6 +293,7 @@ class Bookmark2TagService {
return false;
}
$output = $this->db->sql_fetchrowset($dbresult);
+ $this->db->sql_freeresult($dbresult);
return $output;
}
@@ -321,6 +323,7 @@ class Bookmark2TagService {
return false;
}
$output = $this->db->sql_fetchrowset($dbresult);
+ $this->db->sql_freeresult($dbresult);
return $output;
}
@@ -350,6 +353,7 @@ class Bookmark2TagService {
}
$output = $this->db->sql_fetchrowset($dbresult);
+ $this->db->sql_freeresult($dbresult);
return $output;
}
@@ -363,10 +367,12 @@ class Bookmark2TagService {
if ($row =& $this->db->sql_fetchrow($dbresult)) {
if ($row['tCount'] > 0) {
- return true;
+ $output = true;
}
}
- return false;
+ $output = false;
+ $this->db->sql_freeresult($dbresult);
+ return $output;
}
function renameTag($userid, $old, $new, $fromApi = false) {