diff options
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-handler.c')
| -rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-handler.c | 4 | 
1 files changed, 3 insertions, 1 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-handler.c b/xlators/mgmt/glusterd/src/glusterd-handler.c index 6ea40bc4d6c..d7ac4fd4f2c 100644 --- a/xlators/mgmt/glusterd/src/glusterd-handler.c +++ b/xlators/mgmt/glusterd/src/glusterd-handler.c @@ -83,8 +83,10 @@ glusterd_handle_friend_req (rpcsvc_request_t *req, uuid_t  uuid,          if (ret) {                  ret = glusterd_xfer_friend_add_resp (req, rhost, port, -1,                                                       GF_PROBE_UNKNOWN_PEER); -                if (friend_req->vols.vols_val) +                if (friend_req->vols.vols_val) {                          free (friend_req->vols.vols_val); +                        friend_req->vols.vols_val = NULL; +                }                  goto out;          }  | 
