summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmar Tumballi <amarts@redhat.com>2018-08-27 09:26:43 +0530
committerAmar Tumballi <amarts@redhat.com>2018-08-28 05:48:18 +0000
commit37f77b124283c3252ef00935628ff30b3e5696e6 (patch)
treefb5e435d5fe1e8cd069666b43cf4670132fccea7
parentdf4beaf9a45a52d913cdf991d070e73e6bbcaf6f (diff)
playground: fix coverity issue
CID: 1395161 Updates: bz#789278 Change-Id: I6cc5c488a8aa12d312c34e6535786fd4debcb24c Signed-off-by: Amar Tumballi <amarts@redhat.com>
-rw-r--r--xlators/playground/template/src/template.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/xlators/playground/template/src/template.c b/xlators/playground/template/src/template.c
index 45d310a8c6e..8cbc086a302 100644
--- a/xlators/playground/template/src/template.c
+++ b/xlators/playground/template/src/template.c
@@ -100,9 +100,13 @@ template_init (xlator_t *this)
GF_OPTION_INIT ("dummy", priv->dummy, int32, out);
this->private = priv;
+ priv = NULL;
ret = 0;
out:
+ if (priv)
+ GF_FREE (priv);
+
return ret;
}