From: Sage Weil Date: Sun, 4 Nov 2012 09:10:49 +0000 (-0800) Subject: msg/Pipe: fix leak of AuthSessionHandler X-Git-Tag: v0.55~130^2~18 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=bcefc0e80ac2bda6d3b4550a6d849302bcc201d6;p=ceph.git msg/Pipe: fix leak of AuthSessionHandler Init ptr in ctor, delete in dtor. Reported-by: Yan, Zheng Signed-off-by: Sage Weil --- diff --git a/src/msg/Pipe.cc b/src/msg/Pipe.cc index 94b9bbe23f2..c7d549a6735 100644 --- a/src/msg/Pipe.cc +++ b/src/msg/Pipe.cc @@ -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)