From 8b7dae06574597411d0ddd00cf254c91d35c6243 Mon Sep 17 00:00:00 2001 From: Greg Farnum Date: Tue, 30 Mar 2010 15:29:19 -0700 Subject: [PATCH] msg: fix uses of MAuthReply destructor to use put() --- src/mon/MonClient.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mon/MonClient.cc b/src/mon/MonClient.cc index d15fe9b8a0784..b7406e14bf579 100644 --- a/src/mon/MonClient.cc +++ b/src/mon/MonClient.cc @@ -301,7 +301,7 @@ void MonClient::handle_auth(MAuthReply *m) delete auth; auth = get_auth_client_handler(m->protocol, rotating_secrets); if (!auth) { - delete m; + m->put(); return; } auth->set_want_keys(want_keys); @@ -320,7 +320,7 @@ void MonClient::handle_auth(MAuthReply *m) } int ret = auth->handle_response(m->result, p); - delete m; + m->put(); if (ret == -EAGAIN) { MAuth *m = new MAuth; -- 2.39.5