Skip to content
This repository has been archived by the owner on Sep 18, 2023. It is now read-only.

Commit

Permalink
fix memleak in sort (#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
rui-mo authored Feb 1, 2021
1 parent 9ce64d7 commit 9c6dd28
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ class ColumnarSorter(
elapse.set(NANOSECONDS.toMillis(total_elapse))
sortTime.set(NANOSECONDS.toMillis(sort_elapse))
shuffleTime.set(NANOSECONDS.toMillis(shuffle_elapse))
inputBatchHolder.foreach(cb => cb.close())
inputBatchHolder.clear
if (sorter != null) {
sorter.close()
}
Expand Down

0 comments on commit 9c6dd28

Please sign in to comment.