dataroaring commented on code in PR #19099:
URL: https://github.com/apache/doris/pull/19099#discussion_r1191835438
##########
be/src/olap/memtable.cpp:
##########
@@ -144,19 +144,6 @@ void MemTable::_init_agg_functions(const
vectorized::Block* block) {
}
MemTable::~MemTable() {
- if (_vec_skip_list != nullptr && _keys_type != KeysType::DUP_KEYS) {
- VecTable::Iterator it(_vec_skip_list.get());
- for (it.SeekToFirst(); it.Valid(); it.Next()) {
- // We should release agg_places here, because they are not
released when a
- // load is canceled.
- for (size_t i = _schema->num_key_columns(); i < _num_columns; ++i)
{
- auto function = _agg_functions[i];
- DCHECK(function != nullptr);
- DCHECK(it.key()->agg_places(i) != nullptr);
- function->destroy(it.key()->agg_places(i));
Review Comment:
we should destroy agg functions, otherwise memleak happens.
--
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]