This is an automated email from the ASF dual-hosted git repository.

dataroaring pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/master by this push:
     new 7a85e8d525 [bug](be) fix be block_reader.cc::_update_agg_value() mem 
leak.(#10216) (#10218)
7a85e8d525 is described below

commit 7a85e8d5258304c48f5269ebdc0c1bf877618e2f
Author: Lei Zhang <1091517...@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 f929da979d..681b6d4e55 100644
--- a/be/src/vec/olap/block_reader.cpp
+++ b/be/src/vec/olap/block_reader.cpp
@@ -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);
         }
     }
 }


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to