Init ptr in ctor, delete in dtor.
Reported-by: Yan, Zheng <yan.zheng@intel.com>
Signed-off-by: Sage Weil <sage@inktank.com>
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)),
assert(sent.empty());
if (connection_state)
connection_state->put();
+ delete session_security;
}
void Pipe::handle_ack(uint64_t seq)