diff options
author | Ira Cooper <ira@samba.org> | 2014-01-24 11:24:28 -0500 |
---|---|---|
committer | Anand Avati <avati@redhat.com> | 2014-01-25 01:39:21 -0800 |
commit | d9fbebde0d2ae166c750121f807c440f6ea65478 (patch) | |
tree | 73f62e41a02137a6c230014fd2fb8a639fd99368 /xlators/mgmt/glusterd/src/glusterd-utils.c | |
parent | c0c1210ffd5a45a47a3ad6a61545145f1a8e129c (diff) |
glusterd: Free op_errstr before it goes out of scope.
Also removed the NULL check on path_list, as it shouldn't be needed.
Change-Id: I5b655f7b383f301afa8fc1c1c09b31e2afe47f0f
CID: 1138527
BUG: 789278
Signed-off-by: Ira Cooper <ira@samba.org>
Reviewed-on: http://review.gluster.org/6784
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Anand Avati <avati@redhat.com>
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-utils.c')
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-utils.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-utils.c b/xlators/mgmt/glusterd/src/glusterd-utils.c index 384a974d91b..8b99d20ee95 100644 --- a/xlators/mgmt/glusterd/src/glusterd-utils.c +++ b/xlators/mgmt/glusterd/src/glusterd-utils.c @@ -4805,8 +4805,8 @@ _local_gsyncd_start (dict_t *this, char *key, data_t *value, void *data) uuid_str, NULL); out: - if (path_list) - GF_FREE (path_list); + GF_FREE (path_list); + GF_FREE (op_errstr); return ret; } |