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

yiguolei pushed a commit to branch branch-2.1
in repository https://gitbox.apache.org/repos/asf/doris.git

commit 007a489f46b021125fe020a1412fa9497ea184d2
Author: yiguolei <[email protected]>
AuthorDate: Thu Jan 25 18:25:42 2024 +0800

    [memoryleak](execontext) dctor should be virtual to avoid memory leak 
(#30359)
    
    Co-authored-by: yiguolei <[email protected]>
---
 be/src/runtime/task_execution_context.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/be/src/runtime/task_execution_context.h 
b/be/src/runtime/task_execution_context.h
index 3ea54177a05..7583b401f22 100644
--- a/be/src/runtime/task_execution_context.h
+++ b/be/src/runtime/task_execution_context.h
@@ -45,6 +45,8 @@ struct HasTaskExecutionCtx {
     template <typename T>
     HasTaskExecutionCtx(T* state) : 
task_exec_ctx_(state->get_task_execution_context()) {}
 
+    virtual ~HasTaskExecutionCtx() = default;
+
 public:
     inline TaskExecutionContextSPtr task_exec_ctx() const { return 
task_exec_ctx_.lock(); }
     inline Weak weak_task_exec_ctx() const { return task_exec_ctx_; }


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

Reply via email to