From 762ed20a50aea81dcc905c511cc836ea2ea3a1c3 Mon Sep 17 00:00:00 2001 From: Varsha Rao Date: Thu, 28 Jun 2018 15:31:36 +0530 Subject: xlators/features/barrier: Fix RESOURCE_LEAK Free priv to fix the resource_leak coverity issue. Change-Id: I1f93f54d7d59eddb0b9523ac2b67ef0b279122bd updates: bz#789278 Signed-off-by: Varsha Rao --- xlators/features/barrier/src/barrier.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'xlators/features/barrier') diff --git a/xlators/features/barrier/src/barrier.c b/xlators/features/barrier/src/barrier.c index 4401e3459a9..27f3135c3af 100644 --- a/xlators/features/barrier/src/barrier.c +++ b/xlators/features/barrier/src/barrier.c @@ -643,6 +643,9 @@ init (xlator_t *this) this->private = priv; ret = 0; out: + if (ret && priv) + GF_FREE (priv); + return ret; } -- cgit