summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSage Weil <sage@inktank.com>2012-07-09 21:36:25 -0700
committerSage Weil <sage@inktank.com>2012-07-09 21:36:25 -0700
commitfbe5577f62665d4043b688df53dc33223e96e035 (patch)
tree33101a67906cbd2bc0e92f23eaec044ae5e34cb7
parent74e620511e45866268e9794114bd007c0a5f0a82 (diff)
downloadceph-fbe5577f62665d4043b688df53dc33223e96e035.tar.gz
CephContext: don't leak admin socket
Signed-off-by: Sage Weil <sage@inktank.com>
-rw-r--r--src/common/ceph_context.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common/ceph_context.cc b/src/common/ceph_context.cc
index fab3ee2e6cc..84a0953cbd9 100644
--- a/src/common/ceph_context.cc
+++ b/src/common/ceph_context.cc
@@ -264,6 +264,7 @@ CephContext::~CephContext()
_admin_socket->unregister_command("log dump");
_admin_socket->unregister_command("log reopen");
delete _admin_hook;
+ delete _admin_socket;
delete _heartbeat_map;