summaryrefslogtreecommitdiffstats
path: root/xlators/encryption/rot-13
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/encryption/rot-13')
-rw-r--r--xlators/encryption/rot-13/src/rot-13.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/xlators/encryption/rot-13/src/rot-13.c b/xlators/encryption/rot-13/src/rot-13.c
index 98bfd1b5aa4..39549d8be21 100644
--- a/xlators/encryption/rot-13/src/rot-13.c
+++ b/xlators/encryption/rot-13/src/rot-13.c
@@ -181,6 +181,9 @@ fini (xlator_t *this)
{
rot_13_private_t *priv = this->private;
+ if (!priv)
+ return;
+ this->private = NULL;
GF_FREE (priv);
return;