summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
authorPoornima G <pgurusid@redhat.com>2018-02-19 20:48:14 +0530
committerPoornima G <pgurusid@redhat.com>2018-03-06 05:04:06 +0000
commite8446ef31234b44f29bb9a77081023927ef1404d (patch)
tree4803606093e0db47aeb473550ce52adc8cbf947d /xlators
parent5689a3c2d68cbe6286a4426559f06e210c17bbf4 (diff)
nl-cache: Fix coverity issue RESOURCE_LEAK
Change-Id: Ic552f31853e1886b8c76d45c8c66251f1fd6f97f Signed-off-by: Poornima G <pgurusid@redhat.com>
Diffstat (limited to 'xlators')
-rw-r--r--xlators/performance/nl-cache/src/nl-cache.c3
1 files changed, 3 insertions, 0 deletions
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;
}