Skip to content

Commit

Permalink
fix: fix memory leak in asio_udp_provider (#477)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhao liwei authored May 26, 2020
1 parent d5c97d4 commit 965f32a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/tools/common/asio_net_provider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 965f32a

Please sign in to comment.