This is an automated email from the ASF dual-hosted git repository. lorinlee pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-brpc.git
The following commit(s) were added to refs/heads/master by this push: new b31d769 Fix Socket::WaitAndReset memory leak new de84a82 Merge pull request #1456 from wwbmmm/fix-socket-wait-and-reset-memory-leak b31d769 is described below commit b31d769dbd50b30aee8a3818e2c44840ef28c8f9 Author: wangweibing <wangweib...@baidu.com> AuthorDate: Thu Jul 1 11:15:01 2021 +0000 Fix Socket::WaitAndReset memory leak --- src/brpc/socket.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/brpc/socket.cpp b/src/brpc/socket.cpp index d20cb49..36214e6 100644 --- a/src/brpc/socket.cpp +++ b/src/brpc/socket.cpp @@ -712,6 +712,7 @@ int Socket::WaitAndReset(int32_t expected_nref) { _read_buf.clear(); _ninprocess.store(1, butil::memory_order_relaxed); _auth_flag_error.store(0, butil::memory_order_relaxed); + bthread_id_error(_auth_id, 0); const int rc = bthread_id_create(&_auth_id, NULL, NULL); if (rc != 0) { LOG(FATAL) << "Fail to create _auth_id, " << berror(rc); --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@brpc.apache.org For additional commands, e-mail: dev-h...@brpc.apache.org