[ticket/13298] Add missing $db->freeresult(); calls in functions_admin.php

PHPBB3-13298
Merge pull request #3151 from nickvergessen/ticket/13298

[ticket/13298] Add missing $db->freeresult(); calls in functions_admin.php