]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
msg: fix uses of MAuthReply destructor to use put()
authorGreg Farnum <gregf@hq.newdream.net>
Tue, 30 Mar 2010 22:29:19 +0000 (15:29 -0700)
committerGreg Farnum <gregf@hq.newdream.net>
Wed, 31 Mar 2010 21:59:38 +0000 (14:59 -0700)
src/mon/MonClient.cc

index d15fe9b8a0784c79e3fe4f9e3a32e1db44705eca..b7406e14bf579681da07fa594bdb58a9dfcb51ce 100644 (file)
@@ -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;