Skip to content

Commit

Permalink
Fix leak when concatenating batches
Browse files Browse the repository at this point in the history
  • Loading branch information
abellina committed Sep 14, 2021
1 parent 9786055 commit a626e65
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,9 @@ class GpuHashAggregateIterator(
c => batchesToConcat.head.column(c).dataType
}.toArray
withResource(batchesToConcat.map(GpuColumnVector.from)) { tbl =>
GpuColumnVector.from(cudf.Table.concatenate(tbl:_*), dataTypes)
withResource(cudf.Table.concatenate(tbl: _*)) { concatenated =>
GpuColumnVector.from(concatenated, dataTypes)
}
}
}
}
Expand Down

0 comments on commit a626e65

Please sign in to comment.