summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNigel Babu <nigelb@redhat.com>2017-02-28 13:13:36 +0530
committerAtin Mukherjee <amukherj@redhat.com>2017-03-01 09:35:24 -0500
commit13201e55299b4229a4481d886b12fd34d76044ac (patch)
treec369c39651fa4b6cdf949316a770d0f8d196221d
parentbae7b51d628a3ff4d96be1ec62dca1c8ed008dc8 (diff)
Free brick_hint at the end of the function
Not freeing brick_hint causes a memory leak. This error was reported by Coverity. Change-Id: Ic923f892ea5207848cdd3fa6332a1e52e6c996b8 BUG: 789278 Signed-off-by: Nigel Babu <nigelb@redhat.com> Reviewed-on: https://review.gluster.org/16782 Smoke: Gluster Build System <jenkins@build.gluster.org> NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> CentOS-regression: Gluster Build System <jenkins@build.gluster.org> Reviewed-by: Atin Mukherjee <amukherj@redhat.com>
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-volgen.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-volgen.c b/xlators/mgmt/glusterd/src/glusterd-volgen.c
index 73af41bde96..59d1eceb182 100644
--- a/xlators/mgmt/glusterd/src/glusterd-volgen.c
+++ b/xlators/mgmt/glusterd/src/glusterd-volgen.c
@@ -5864,6 +5864,8 @@ build_bitd_clusters (volgen_graph_t *graph, glusterd_volinfo_t *volinfo,
ret = clusters;
out:
+ GF_FREE (brick_hint);
+ brick_hint = NULL;
return ret;
}