aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/viewtopic.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/viewtopic.php')
-rw-r--r--phpBB/viewtopic.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/phpBB/viewtopic.php b/phpBB/viewtopic.php
index 32b9148b0a..d9e592e818 100644
--- a/phpBB/viewtopic.php
+++ b/phpBB/viewtopic.php
@@ -412,6 +412,7 @@ if(!$total_posts = $db->sql_numrows($result))
message_die(GENERAL_MESSAGE, $lang['No_posts_topic']);
}
$postrow = $db->sql_fetchrowset($result);
+$db->sql_freeresult($result);
$sql = "SELECT *
FROM " . RANKS_TABLE . "