summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt/glusterd/src/glusterd3_1-mops.c
diff options
context:
space:
mode:
authorRaghavendra Bhat <raghavendrabhat@gluster.com>2010-09-16 00:13:46 +0000
committerVijay Bellur <vijay@dev.gluster.com>2010-09-16 04:22:54 -0700
commitf8accba64ce850bfb13bb3a4978ae8493ff5f6d4 (patch)
tree8172e035e9f72b95e82aac32a740c9c1ce22ee67 /xlators/mgmt/glusterd/src/glusterd3_1-mops.c
parent6fe0be9ffdd11789aa7567183ee415b121a85734 (diff)
avoid code duplication while freeing respnse hostname
Signed-off-by: Raghavendra Bhat <raghavendrabhat@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 1614 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1614
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd3_1-mops.c')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd3_1-mops.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd3_1-mops.c b/xlators/mgmt/glusterd/src/glusterd3_1-mops.c
index 07820a369..1f0b2a785 100644
--- a/xlators/mgmt/glusterd/src/glusterd3_1-mops.c
+++ b/xlators/mgmt/glusterd/src/glusterd3_1-mops.c
@@ -137,10 +137,6 @@ glusterd3_1_probe_cbk (struct rpc_req *req, struct iovec *iov,
gf_log ("glusterd", GF_LOG_NORMAL, "Received resp to probe req");
- if (rsp.hostname)
- free (rsp.hostname);//malloced by xdr
- return ret;
-
out:
if (rsp.hostname)
free (rsp.hostname);//malloced by xdr