From 37f77b124283c3252ef00935628ff30b3e5696e6 Mon Sep 17 00:00:00 2001 From: Amar Tumballi Date: Mon, 27 Aug 2018 09:26:43 +0530 Subject: playground: fix coverity issue CID: 1395161 Updates: bz#789278 Change-Id: I6cc5c488a8aa12d312c34e6535786fd4debcb24c Signed-off-by: Amar Tumballi --- xlators/playground/template/src/template.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xlators/playground/template/src/template.c b/xlators/playground/template/src/template.c index 45d310a8c6..8cbc086a30 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; } -- cgit