DRILL-627: Fix memory leaks in hash join and hash aggregate