[ticket/12387] Cleanup *_free_result call and remove @ on that call

https://tracker.phpbb.com/browse/PHPBB3-12387

PHPBB3-12387
i have to check that for some of them