DRILL-627: Fix memory leak in hash join