This is an automated email from the ASF dual-hosted git repository. morningman pushed a commit to branch branch-1.2-lts in repository https://gitbox.apache.org/repos/asf/doris.git
commit f1874248858006e4dea8aefab359157e17fdc6be Author: Xinyi Zou <[email protected]> AuthorDate: Fri May 5 14:29:34 2023 +0800 [fix](memory) Fix memory leak due to incorrect block reuse of AggregateFunctionSortData #19214 --- be/src/vec/aggregate_functions/aggregate_function_sort.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/be/src/vec/aggregate_functions/aggregate_function_sort.h b/be/src/vec/aggregate_functions/aggregate_function_sort.h index 1f19996f04..2fe23ebcea 100644 --- a/be/src/vec/aggregate_functions/aggregate_function_sort.h +++ b/be/src/vec/aggregate_functions/aggregate_function_sort.h @@ -66,7 +66,7 @@ struct AggregateFunctionSortData { PBlock pblock; pblock.ParseFromString(data); - new (&block) Block(pblock); + block = Block(pblock); } void add(const IColumn** columns, size_t columns_num, size_t row_num) { --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
