You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by mo...@apache.org on 2022/06/20 02:52:59 UTC
[doris] 01/03: [bug](be) fix be block_reader.cc::_update_agg_value() mem leak.(#10216) (#10218)
This is an automated email from the ASF dual-hosted git repository.
morningman pushed a commit to branch dev-1.0.1
in repository https://gitbox.apache.org/repos/asf/doris.git
commit 688c083b98ae6d58f44f853d1ed718c433b501b3
Author: Lei Zhang <10...@qq.com>
AuthorDate: Fri Jun 17 21:25:52 2022 +0800
[bug](be) fix be block_reader.cc::_update_agg_value() mem leak.(#10216) (#10218)
---
be/src/vec/olap/block_reader.cpp | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/be/src/vec/olap/block_reader.cpp b/be/src/vec/olap/block_reader.cpp
index e9da92f1ba..2d5c542379 100644
--- a/be/src/vec/olap/block_reader.cpp
+++ b/be/src/vec/olap/block_reader.cpp
@@ -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);
}
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org