From bcefc0e80ac2bda6d3b4550a6d849302bcc201d6 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Sun, 4 Nov 2012 01:10:49 -0800 Subject: [PATCH] msg/Pipe: fix leak of AuthSessionHandler Init ptr in ctor, delete in dtor. Reported-by: Yan, Zheng Signed-off-by: Sage Weil --- src/msg/Pipe.cc | 2 ++ 1 file changed, 2 insertions(+) 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) -- 2.47.3