You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by yi...@apache.org on 2024/01/25 13:37:56 UTC

(doris) 06/09: [memoryleak](execontext) dctor should be virtual to avoid memory leak (#30359)

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 <67...@qq.com>
AuthorDate: Thu Jan 25 18:25:42 2024 +0800

    [memoryleak](execontext) dctor should be virtual to avoid memory leak (#30359)
    
    Co-authored-by: yiguolei <yi...@gmail.com>
---
 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: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org