diff options
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-handler.c')
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-handler.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-handler.c b/xlators/mgmt/glusterd/src/glusterd-handler.c index 40f5704b698..2a497974d77 100644 --- a/xlators/mgmt/glusterd/src/glusterd-handler.c +++ b/xlators/mgmt/glusterd/src/glusterd-handler.c @@ -3204,7 +3204,7 @@ __glusterd_handle_mount (rpcsvc_request_t *req) out: if (!rsp.path) - rsp.path = ""; + rsp.path = gf_strdup(""); glusterd_submit_reply (req, &rsp, NULL, 0, NULL, (xdrproc_t)xdr_gf1_cli_mount_rsp); @@ -3212,8 +3212,8 @@ __glusterd_handle_mount (rpcsvc_request_t *req) if (dict) dict_unref (dict); - if (*rsp.path) - GF_FREE (rsp.path); + + GF_FREE (rsp.path); glusterd_friend_sm (); glusterd_op_sm (); |