aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorCesar G <prototech91@gmail.com>2013-12-30 11:08:02 -0800
committerCesar G <prototech91@gmail.com>2013-12-30 11:09:08 -0800
commit06262aca541691fd28f02d9b6983b57429f4a671 (patch)
tree5e6ee8d766d054d8bfe7e51c5dfc5fa248a16f86 /phpBB
parent3ccc8add10b4a6d915d3edbb3075351301277aab (diff)
downloadforums-06262aca541691fd28f02d9b6983b57429f4a671.tar
forums-06262aca541691fd28f02d9b6983b57429f4a671.tar.gz
forums-06262aca541691fd28f02d9b6983b57429f4a671.tar.bz2
forums-06262aca541691fd28f02d9b6983b57429f4a671.tar.xz
forums-06262aca541691fd28f02d9b6983b57429f4a671.zip
[ticket/12038] Free query results.
PHPBB3-12038
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/includes/acp/acp_permission_roles.php1
-rw-r--r--phpBB/includes/acp/acp_reasons.php1
2 files changed, 2 insertions, 0 deletions
diff --git a/phpBB/includes/acp/acp_permission_roles.php b/phpBB/includes/acp/acp_permission_roles.php
index b5b838faad..aca45575d3 100644
--- a/phpBB/includes/acp/acp_permission_roles.php
+++ b/phpBB/includes/acp/acp_permission_roles.php
@@ -363,6 +363,7 @@ class acp_permission_roles
WHERE role_id = $role_id";
$result = $db->sql_query($sql);
$order = $db->sql_fetchfield('role_order');
+ $db->sql_freeresult($result);
if ($order === false || ($order == 0 && $action == 'move_up'))
{
diff --git a/phpBB/includes/acp/acp_reasons.php b/phpBB/includes/acp/acp_reasons.php
index 26ff5aa0a4..569bb73ab0 100644
--- a/phpBB/includes/acp/acp_reasons.php
+++ b/phpBB/includes/acp/acp_reasons.php
@@ -286,6 +286,7 @@ class acp_reasons
WHERE reason_id = $reason_id";
$result = $db->sql_query($sql);
$order = $db->sql_fetchfield('reason_order');
+ $db->sql_freeresult($result);
if ($order === false || ($order == 0 && $action == 'move_up'))
{