Skip to content

Commit ecf30af

Browse files
skyeNong Li
authored andcommitted
Fix memory leak in PartitionedAggNode
Change-Id: Ifedffde3d67102bf8e4ab5a46d68812f49341bdb Reviewed-on: http://gerrit.sjc.cloudera.com:8080/4809 Reviewed-by: Nong Li <[email protected]> Tested-by: jenkins
1 parent 97ddc71 commit ecf30af

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

be/src/exec/partitioned-aggregation-node.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -410,6 +410,7 @@ Status PartitionedAggregationNode::Partition::InitStreams() {
410410
agg_fn_pool.reset(new MemPool(parent->state_->udf_mem_tracker()));
411411
for (int i = 0; i < parent->agg_fn_ctxs_.size(); ++i) {
412412
agg_fn_ctxs.push_back(parent->agg_fn_ctxs_[i]->impl()->Clone(agg_fn_pool.get()));
413+
parent->state_->obj_pool()->Add(agg_fn_ctxs[i]);
413414
}
414415

415416
aggregated_row_stream.reset(new BufferedTupleStream(parent->state_,

0 commit comments

Comments
 (0)