Skip to content

Commit

Permalink
clear batchOfVectors list when freeing chunk data
Browse files Browse the repository at this point in the history
  • Loading branch information
Lorna Barber authored and SimbaGithub committed Jul 7, 2022
1 parent 54c90a3 commit 5d4d3bf
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -115,6 +115,7 @@ public long computeNeededChunkMemory() {
@Override
public void freeData() {
batchOfVectors.forEach(list -> list.forEach(ValueVector::close));
this.batchOfVectors.clear();
if (firstResultChunkSortedIndices != null) {
firstResultChunkSortedIndices.close();
}
Expand Down

0 comments on commit 5d4d3bf

Please sign in to comment.