]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
msg/Pipe: fix leak of AuthSessionHandler
authorSage Weil <sage@inktank.com>
Sun, 4 Nov 2012 09:10:49 +0000 (01:10 -0800)
committerSage Weil <sage@inktank.com>
Sun, 4 Nov 2012 09:10:49 +0000 (01:10 -0800)
Init ptr in ctor, delete in dtor.

Reported-by: Yan, Zheng <yan.zheng@intel.com>
Signed-off-by: Sage Weil <sage@inktank.com>
src/msg/Pipe.cc

index 94b9bbe23f2401614136f0c663e37b1942f2efde..c7d549a673575c51cf5627058485d1a30e1625c7 100644 (file)
@@ -59,6 +59,7 @@ Pipe::Pipe(SimpleMessenger *r, int st, Connection *con)
     peer_type(-1),
     pipe_lock("SimpleMessenger::Pipe::pipe_lock"),
     state(st),
+    session_security(NULL),
     connection_state(NULL),
     reader_running(false), reader_joining(false), writer_running(false),
     in_q(r->dispatch_queue.create_queue(this)),
@@ -91,6 +92,7 @@ Pipe::~Pipe()
   assert(sent.empty());
   if (connection_state)
     connection_state->put();
+  delete session_security;
 }
 
 void Pipe::handle_ack(uint64_t seq)