xiaokang commented on code in PR #10772:
URL: https://github.com/apache/doris/pull/10772#discussion_r917831368
##########
be/src/vec/olap/vcollect_iterator.cpp:
##########
@@ -260,6 +260,14 @@ VCollectIterator::Level1Iterator::~Level1Iterator() {
child = nullptr;
}
}
+
+ if (_heap) {
+ while (!_heap->empty()) {
+ auto child = _heap->top();
+ _heap->pop();
+ if (child) delete child;
Review Comment:
at line 327, _children.clear() is called after child is added to _heap.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]