[ticket/12038] Free query results.

PHPBB3-12038