Skip to content

Commit

Permalink
[bug](be) fix be block_reader.cc::_update_agg_value() mem leak.(#10216)…
Browse files Browse the repository at this point in the history
… (#10218)
  • Loading branch information
SWJTU-ZhangLei authored and morningman committed Jun 20, 2022
1 parent 2e04e4c commit 688c083
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion be/src/vec/olap/block_reader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,9 @@ void BlockReader::_update_agg_value(MutableColumns& columns, int begin, int end,

if (is_close) {
function->insert_result_into(place, *columns[_return_columns_loc[idx]]);
function->create(place); // reset aggregate data
// reset aggregate data
function->destroy(place);
function->create(place);
}
}
}
Expand Down

0 comments on commit 688c083

Please sign in to comment.