Skip to content

Commit

Permalink
[bug](be) fix be block_reader.cc::_update_agg_value() mem leak.(apach…
Browse files Browse the repository at this point in the history
  • Loading branch information
SWJTU-ZhangLei committed Jun 17, 2022
1 parent d51166d commit d376665
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 @@ -347,7 +347,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 d376665

Please sign in to comment.