]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
msg/async/rdm: fix leak when existing failure in ip network
authorHaomai Wang <haomai@xsky.com>
Wed, 15 Feb 2017 13:21:49 +0000 (21:21 +0800)
committerHaomai Wang <haomai@xsky.com>
Wed, 15 Feb 2017 13:21:49 +0000 (21:21 +0800)
Signed-off-by: Haomai Wang <haomai@xsky.com>
src/msg/async/rdma/RDMAStack.cc

index 16e996c8e2a82bf45b324ca820adbf3cd2e4bf2e..5a044e9fddd440e7c9b0310ed56612e1ccc2a409 100644 (file)
@@ -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<RDMAConnectedSocketImpl> csi(p);