summaryrefslogtreecommitdiffstats
path: root/rpc/rpc-transport
diff options
context:
space:
mode:
authorAtin Mukherjee <amukherj@redhat.com>2015-02-18 22:50:34 +0530
committerRaghavendra G <rgowdapp@redhat.com>2015-02-19 01:49:55 -0800
commitbdb5ca2339edc76b81d1ff996d695eecd849760f (patch)
treee83ad1fee7e894fbdd47ce7a51d9205e7773ca8a /rpc/rpc-transport
parentf1c4ce0e220a46b7a43c9303c0d137498d421101 (diff)
rdma: free rdma priv data if init fails
Change-Id: I57b38c8783666e806836dacf3f74cf9f6876070a BUG: 1164079 Signed-off-by: Atin Mukherjee <amukherj@redhat.com> Reviewed-on: http://review.gluster.org/9687 Reviewed-by: mohammed rafi kc <rkavunga@redhat.com> Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Raghavendra G <rgowdapp@redhat.com> Tested-by: Raghavendra G <rgowdapp@redhat.com>
Diffstat (limited to 'rpc/rpc-transport')
-rw-r--r--rpc/rpc-transport/rdma/src/rdma.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/rpc/rpc-transport/rdma/src/rdma.c b/rpc/rpc-transport/rdma/src/rdma.c
index e6ed91e05c7..89a00b736fd 100644
--- a/rpc/rpc-transport/rdma/src/rdma.c
+++ b/rpc/rpc-transport/rdma/src/rdma.c
@@ -4732,6 +4732,8 @@ init (rpc_transport_t *this)
if (gf_rdma_init (this)) {
gf_log (this->name, GF_LOG_WARNING,
"Failed to initialize IB Device");
+ this->private = NULL;
+ GF_FREE (priv);
return -1;
}
iobuf_pool = this->ctx->iobuf_pool;