summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt/glusterd/src
diff options
context:
space:
mode:
authorLalatendu Mohanty <lmohanty@redhat.com>2014-01-20 19:24:31 +0530
committerVijay Bellur <vbellur@redhat.com>2014-02-02 23:23:56 -0800
commitf676d5a3e037a205c93751b862b856b7639058c4 (patch)
treeb1024f0a6a603fdc2a54958c6ede42f46df54b90 /xlators/mgmt/glusterd/src
parent3023a50c1410b4da457e86bed69c320760d37344 (diff)
geo-rep: Fixing a memory leak issue reported by Coverity
Issue: "errmsg" is allocated memory through GF_CALLOC in function "gf_strdup" Fix: using GF_FREE to free the memory Change-Id: Iee8f8d806ea995591feee8e4ed0a0798ad07a8c4 BUG: 789278 Signed-off-by: Lalatendu Mohanty <lmohanty@redhat.com> Reviewed-on: http://review.gluster.org/6740 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Venky Shankar <vshankar@redhat.com>
Diffstat (limited to 'xlators/mgmt/glusterd/src')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-geo-rep.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-geo-rep.c b/xlators/mgmt/glusterd/src/glusterd-geo-rep.c
index 3969db1..9cd0466 100644
--- a/xlators/mgmt/glusterd/src/glusterd-geo-rep.c
+++ b/xlators/mgmt/glusterd/src/glusterd-geo-rep.c
@@ -1444,6 +1444,7 @@ _get_slave_status (dict_t *dict, char *key, data_t *value, void *data)
ret = is_geo_rep_active (param->volinfo,slave, conf_path,
&param->is_active);
out:
+ GF_FREE(errmsg);
return ret;
}