Skip to content

Commit

Permalink
Fix memory leak in merging iterator
Browse files Browse the repository at this point in the history
  • Loading branch information
rescrv committed Feb 16, 2016
1 parent 40ce801 commit f379837
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions table/merger.cc
Expand Up @@ -52,6 +52,8 @@ class MergingIterator : public Iterator {

virtual ~MergingIterator() {
delete[] children_;
delete[] comparisons_;
delete[] heap_;
}

virtual bool Valid() const {
Expand Down

0 comments on commit f379837

Please sign in to comment.