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

PHPBB3-12387