Skip to content

Commit

Permalink
fix: fix memory leak in meta_load_balance_test (#452)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhao liwei authored Apr 30, 2020
1 parent b9e2bbe commit 294e0c9
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,11 @@ class message_filter : public dsn::replication::meta_service
typedef std::function<cur_ptr(const dsn::rpc_address &target, dsn::message_ex *request)> filter;
message_filter(meta_load_balance_test *app) : meta_service(), _app(app) {}
void set_filter(const filter &f) { _filter = f; }
virtual void reply_message(dsn::message_ex *request, dsn::message_ex *response) override {}
virtual void reply_message(dsn::message_ex *request, dsn::message_ex *response) override
{
destroy_message(response);
}

virtual void send_message(const dsn::rpc_address &target, dsn::message_ex *request) override
{
// we expect this is a configuration_update_request proposal
Expand Down

0 comments on commit 294e0c9

Please sign in to comment.