[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:
@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user