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

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


The following commit(s) were added to refs/heads/branch-4.1 by this push:
     new 921fcc02bd7 branch-4.1: [fix](sync_point) Fix heap-use-after-free in 
SyncPoint during program exit #61040 (#61434)
921fcc02bd7 is described below

commit 921fcc02bd79bb7ca718d7753e0f68ed17f20b7c
Author: github-actions[bot] 
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Wed Mar 18 17:35:25 2026 +0800

    branch-4.1: [fix](sync_point) Fix heap-use-after-free in SyncPoint during 
program exit #61040 (#61434)
    
    Cherry-picked from #61040
    
    Co-authored-by: Yixuan Wang <[email protected]>
---
 common/cpp/sync_point.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/common/cpp/sync_point.cpp b/common/cpp/sync_point.cpp
index 02bdce1ec34..209d5dcf0d5 100644
--- a/common/cpp/sync_point.cpp
+++ b/common/cpp/sync_point.cpp
@@ -70,8 +70,8 @@ private:
 };
 
 SyncPoint* SyncPoint::get_instance() {
-  static SyncPoint sync_point;
-  return &sync_point;
+  static auto* sync_point = new SyncPoint();
+  return sync_point;
 }
 SyncPoint::SyncPoint() : 
   impl_(new Data) {


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

Reply via email to