[ticket/12038] Free database results.

PHPBB3-12038