]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
monclient: fix leak of AuthClientHandler
authorJosh Durgin <josh.durgin@dreamhost.com>
Mon, 14 Mar 2011 21:20:07 +0000 (14:20 -0700)
committerJosh Durgin <josh.durgin@dreamhost.com>
Mon, 14 Mar 2011 21:44:38 +0000 (14:44 -0700)
Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
src/mon/MonClient.cc
src/mon/MonClient.h

index 5b47a2495c08eabf38f0254cee97658e10ba1dea..73f4a26687030e1d723d15894b03d76867b29998 100644 (file)
 #undef dout_prefix
 #define dout_prefix *_dout << "monclient" << (hunting ? "(hunting)":"") << ": "
 
+MonClient::~MonClient()
+{
+  if (auth)
+    delete auth;
+}
 
 /*
  * build an initial monmap with any known monitor
index 99958818ef35f3133236733ac54324adf3797670..614c481ef998e515a129e4e09fdc3712f12189e8 100644 (file)
@@ -173,8 +173,7 @@ public:
     auth(NULL),
     rotating_secrets(rkeys) { }
 
-  ~MonClient() {
-  }
+  ~MonClient();
 
   void init();
   void shutdown();