[fix] fix agg_memleak (#10571)

The previous code did not call 'destroy' to release the resource after the' create 'operation,
resulting in a memory leak. So I added Destroy
This commit is contained in:
zy-kkk
2022-07-03 20:22:26 +08:00
committed by GitHub
parent bfaa60b695
commit aecf6e09a9

View File

@ -719,6 +719,10 @@ Status AggregationNode::_pre_agg_with_serialized_key(doris::vectorized::Block* i
}
}
for (size_t i = 0; i < rows; ++i) {
_destroy_agg_status(_streaming_pre_places[i]);
}
if (!mem_reuse) {
ColumnsWithTypeAndName columns_with_schema;
for (int i = 0; i < key_size; ++i) {