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

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


The following commit(s) were added to refs/heads/master by this push:
     new e5d4cf01ed [fix](ut) fix a potential memory leak in BE ut (#9362)
e5d4cf01ed is described below

commit e5d4cf01ed2728f5c18b89805031c887e4b5922b
Author: Mingyu Chen <[email protected]>
AuthorDate: Thu May 5 20:47:31 2022 +0800

    [fix](ut) fix a potential memory leak in BE ut (#9362)
---
 be/test/util/arrow/arrow_work_flow_test.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/be/test/util/arrow/arrow_work_flow_test.cpp 
b/be/test/util/arrow/arrow_work_flow_test.cpp
index 1e22cc9fb9..2eb8fc2606 100644
--- a/be/test/util/arrow/arrow_work_flow_test.cpp
+++ b/be/test/util/arrow/arrow_work_flow_test.cpp
@@ -65,6 +65,7 @@ protected:
         EXPECT_EQ(system("rm -rf ./test_run"), 0);
 
         delete _state;
+        doris::ExecEnv::destroy(_exec_env);
     }
 
     void init();
@@ -92,6 +93,7 @@ void ArrowWorkFlowTest::init_runtime_state() {
     _exec_env->_thread_mgr = new ThreadResourceMgr();
     _exec_env->_buffer_reservation = new ReservationTracker();
     _exec_env->_task_pool_mem_tracker_registry.reset(new MemTrackerTaskPool());
+    _exec_env->_is_init = true;
     TQueryOptions query_options;
     query_options.batch_size = 1024;
     TUniqueId query_id;


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to