From e8446ef31234b44f29bb9a77081023927ef1404d Mon Sep 17 00:00:00 2001 From: Poornima G Date: Mon, 19 Feb 2018 20:48:14 +0530 Subject: nl-cache: Fix coverity issue RESOURCE_LEAK Change-Id: Ic552f31853e1886b8c76d45c8c66251f1fd6f97f Signed-off-by: Poornima G --- xlators/performance/nl-cache/src/nl-cache.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'xlators/performance') diff --git a/xlators/performance/nl-cache/src/nl-cache.c b/xlators/performance/nl-cache/src/nl-cache.c index 575b1e76d59..689950c3b8a 100644 --- a/xlators/performance/nl-cache/src/nl-cache.c +++ b/xlators/performance/nl-cache/src/nl-cache.c @@ -742,6 +742,9 @@ init (xlator_t *this) ret = 0; out: + if (ret < 0) + GF_FREE (conf); + return ret; } -- cgit