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

liaoxin 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 4edda909b39 [fix](httpserver) Fix lsan check error when stop libevent 
server (#53081)
4edda909b39 is described below

commit 4edda909b391d902575a34dcc7bee1ef69604e8b
Author: Xin Liao <[email protected]>
AuthorDate: Fri Jul 11 16:37:42 2025 +0800

    [fix](httpserver) Fix lsan check error when stop libevent server (#53081)
---
 be/src/http/ev_http_server.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/be/src/http/ev_http_server.cpp b/be/src/http/ev_http_server.cpp
index 1bbd2c0e178..457cf0e0322 100644
--- a/be/src/http/ev_http_server.cpp
+++ b/be/src/http/ev_http_server.cpp
@@ -148,9 +148,9 @@ void EvHttpServer::stop() {
         for (int i = 0; i < _num_workers; ++i) {
             event_base_loopbreak(_event_bases[i].get());
         }
-        _event_bases.clear();
     }
     _workers->shutdown();
+    _event_bases.clear();
     close(_server_fd);
     _started = false;
 }


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

Reply via email to