diff options
Diffstat (limited to 'xlators')
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-mountbroker.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-mountbroker.c b/xlators/mgmt/glusterd/src/glusterd-mountbroker.c index 50ce1484e62..7b4b09a6c2a 100644 --- a/xlators/mgmt/glusterd/src/glusterd-mountbroker.c +++ b/xlators/mgmt/glusterd/src/glusterd-mountbroker.c @@ -324,10 +324,10 @@ make_georep_mountspec (gf_mount_spec_t *mspec, const char *volnames, fa[2] = georep_mnt_desc; for (i = 0; i < 3; i++) { - if (fa[i]) - GF_FREE (fa[i]); - else + if (fa[i] == NULL) ret = -1; + else + GF_FREE (fa[i]); } return ret; |