diff options
Diffstat (limited to 'xlators/encryption')
-rw-r--r-- | xlators/encryption/rot-13/src/rot-13.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/xlators/encryption/rot-13/src/rot-13.c b/xlators/encryption/rot-13/src/rot-13.c index b9ac29a72e1..1bcfe0192f6 100644 --- a/xlators/encryption/rot-13/src/rot-13.c +++ b/xlators/encryption/rot-13/src/rot-13.c @@ -150,6 +150,7 @@ init (xlator_t *this) if (gf_string2boolean (data->data, &priv->encrypt_write) == -1) { gf_log (this->name, GF_LOG_ERROR, "encrypt-write takes only boolean options"); + GF_FREE (priv); return -1; } } @@ -159,6 +160,7 @@ init (xlator_t *this) if (gf_string2boolean (data->data, &priv->decrypt_read) == -1) { gf_log (this->name, GF_LOG_ERROR, "decrypt-read takes only boolean options"); + GF_FREE (priv); return -1; } } |