From 602d8e523c69a75d02942300bd05e964a2f63147 Mon Sep 17 00:00:00 2001 From: Haomai Wang Date: Wed, 15 Feb 2017 21:21:49 +0800 Subject: [PATCH] msg/async/rdm: fix leak when existing failure in ip network Signed-off-by: Haomai Wang --- src/msg/async/rdma/RDMAStack.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/msg/async/rdma/RDMAStack.cc b/src/msg/async/rdma/RDMAStack.cc index 16e996c8e2a..5a044e9fddd 100644 --- a/src/msg/async/rdma/RDMAStack.cc +++ b/src/msg/async/rdma/RDMAStack.cc @@ -367,6 +367,7 @@ int RDMAWorker::connect(const entity_addr_t &addr, const SocketOptions &opts, Co if (r < 0) { ldout(cct, 1) << __func__ << " try connecting failed." << dendl; + delete p; return r; } std::unique_ptr csi(p); -- 2.39.5