diff options
author | Raghavendra Talur <rtalur@redhat.com> | 2014-02-04 18:26:57 +0530 |
---|---|---|
committer | Anand Avati <avati@redhat.com> | 2014-02-08 02:29:14 -0800 |
commit | 032854831a3dd338d7d5aee9228937d0418b8876 (patch) | |
tree | ac7aa7f6721531da84a19a0aecb209604c76a853 /xlators/mgmt/glusterd/src/glusterd-geo-rep.c | |
parent | 7903c55a0d488f93790f5e80105f5252b88f32af (diff) |
glusterd: Fix a memory leak.
errmsg may have malloc'ed memory, free it before leaving function.
Change-Id: I4ab3b9db7a48a5e256eb8a08b8ab49818ce6ca1b
BUG: 789278
Signed-off-by: Raghavendra Talur <rtalur@redhat.com>
Reviewed-on: http://review.gluster.org/6902
Reviewed-by: Poornima G <pgurusid@redhat.com>
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Anand Avati <avati@redhat.com>
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-geo-rep.c')
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-geo-rep.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-geo-rep.c b/xlators/mgmt/glusterd/src/glusterd-geo-rep.c index 9cd0466fe6b..a0bc9f73700 100644 --- a/xlators/mgmt/glusterd/src/glusterd-geo-rep.c +++ b/xlators/mgmt/glusterd/src/glusterd-geo-rep.c @@ -987,6 +987,8 @@ _get_status_mst_slv (dict_t *this, char *key, data_t *value, void *data) param->node); out: + GF_FREE (errmsg); + if (slave_buf) GF_FREE(slave_buf); |