summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMark Pemberton <mpemberton5@gmail.com>2011-05-14 21:46:35 -0400
committerMark Pemberton <mpemberton5@gmail.com>2011-05-14 21:46:35 -0400
commit6ed90e647a0a513def828ec66f17df2b724c518e (patch)
treed3b42c99dc6031f5020558e68fb8d1ff5fed8a85 /src
parentec345f7a1343769abdf3f5920a0732b24726b733 (diff)
downloadsemanticscuttle-6ed90e647a0a513def828ec66f17df2b724c518e.tar.gz
semanticscuttle-6ed90e647a0a513def828ec66f17df2b724c518e.tar.bz2
Fixed sql commands where resources were not freed
Diffstat (limited to 'src')
-rw-r--r--src/SemanticScuttle/Service/Bookmark.php1
-rw-r--r--src/SemanticScuttle/Service/User.php9
2 files changed, 6 insertions, 4 deletions
diff --git a/src/SemanticScuttle/Service/Bookmark.php b/src/SemanticScuttle/Service/Bookmark.php
index e836cd8..57d0b2e 100644
--- a/src/SemanticScuttle/Service/Bookmark.php
+++ b/src/SemanticScuttle/Service/Bookmark.php
@@ -427,6 +427,7 @@ class SemanticScuttle_Service_Bookmark extends SemanticScuttle_DbService
$existence[$hashes[$row['bHash']]] = $row['count'] > 0;
}
+ $this->db->sql_freeresult($dbresult);
return $existence;
}
diff --git a/src/SemanticScuttle/Service/User.php b/src/SemanticScuttle/Service/User.php
index c3633de..01945ca 100644
--- a/src/SemanticScuttle/Service/User.php
+++ b/src/SemanticScuttle/Service/User.php
@@ -674,11 +674,12 @@ class SemanticScuttle_Service_User extends SemanticScuttle_DbService
return false;
}
- $arrWatch = array();
+ $retval = true;
if ($this->db->sql_numrows($dbresult) == 0)
- return false;
- else
- return true;
+ $retval = false;
+
+ $this->db->sql_freeresult($dbresult);
+ return $retval;
}
function setWatchStatus($subjectUserID) {