diff --git a/src/dist/replication/test/meta_test/unit_test/meta_load_balance_test.cpp b/src/dist/replication/test/meta_test/unit_test/meta_load_balance_test.cpp index 432514ed36..08e353df98 100644 --- a/src/dist/replication/test/meta_test/unit_test/meta_load_balance_test.cpp +++ b/src/dist/replication/test/meta_test/unit_test/meta_load_balance_test.cpp @@ -96,7 +96,11 @@ class message_filter : public dsn::replication::meta_service typedef std::function 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