From 13201e55299b4229a4481d886b12fd34d76044ac Mon Sep 17 00:00:00 2001 From: Nigel Babu Date: Tue, 28 Feb 2017 13:13:36 +0530 Subject: 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 Reviewed-on: https://review.gluster.org/16782 Smoke: Gluster Build System NetBSD-regression: NetBSD Build System CentOS-regression: Gluster Build System Reviewed-by: Atin Mukherjee --- xlators/mgmt/glusterd/src/glusterd-volgen.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'xlators/mgmt/glusterd/src/glusterd-volgen.c') 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; } -- cgit