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

https://tracker.phpbb.com/browse/PHPBB3-13298