diff options
-rw-r--r-- | xlators/playground/template/src/template.c | 4 |
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; } |