summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
authorSheetal Pamecha <sheetal.pamecha08@gmail.com>2018-12-21 03:59:16 +0530
committerAmar Tumballi <amarts@redhat.com>2018-12-29 02:51:24 +0000
commitcd29723ab1a572fd9c2ceb3414b11d654cb9a08a (patch)
tree00f2971b19e6e629f672ef97c6fb2fdf58ba4c0e /xlators
parenta12cadc1377ef51ad52defd1da91bf8f599e5786 (diff)
mgmt/glusterd: fix clang warning
Attempt to free rsp.dict.dict_val twice Change-Id: I5dbc50430f59ca8d0c739b0fbe95d71981852889 Updates: bz#1622665 Signed-off-by: Sheetal Pamecha <sheetal.pamecha08@gmail.com>
Diffstat (limited to 'xlators')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-mgmt.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-mgmt.c b/xlators/mgmt/glusterd/src/glusterd-mgmt.c
index ccb4fd31841..ae5be9c8768 100644
--- a/xlators/mgmt/glusterd/src/glusterd-mgmt.c
+++ b/xlators/mgmt/glusterd/src/glusterd-mgmt.c
@@ -1292,7 +1292,6 @@ gd_mgmt_v3_brick_op_cbk_fn(struct rpc_req *req, struct iovec *iov, int count,
ret = dict_unserialize(rsp.dict.dict_val, rsp.dict.dict_len, &rsp_dict);
if (ret < 0) {
- free(rsp.dict.dict_val);
goto out;
} else {
rsp_dict->extra_stdfree = rsp.dict.dict_val;