This is an automated email from the ASF dual-hosted git repository.
yiguolei 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 d732824addb [memoryleak](execontext) dctor should be virtual to avoid
memory leak (#30359)
d732824addb is described below
commit d732824addb4f172b58ae262e6f053bd96d0aa04
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]