From 965f32a922fa1ce2cfa59e147da7fb1ad2c18b10 Mon Sep 17 00:00:00 2001 From: zhao liwei Date: Tue, 26 May 2020 18:33:31 +0800 Subject: [PATCH] fix: fix memory leak in asio_udp_provider (#477) --- src/core/tools/common/asio_net_provider.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core/tools/common/asio_net_provider.cpp b/src/core/tools/common/asio_net_provider.cpp index 6448028d35..8d2f0fb095 100644 --- a/src/core/tools/common/asio_net_provider.cpp +++ b/src/core/tools/common/asio_net_provider.cpp @@ -208,6 +208,8 @@ void asio_udp_provider::send_message(message_ex *request) // we do not handle failure here, rpc matcher would handle timeouts } }); + request->add_ref(); + request->release_ref(); } asio_udp_provider::asio_udp_provider(rpc_engine *srv, network *inner_provider)