diff options
Diffstat (limited to 'xlators/features/locks/src/posix.c')
-rw-r--r-- | xlators/features/locks/src/posix.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/xlators/features/locks/src/posix.c b/xlators/features/locks/src/posix.c index 36c399c115c..29b3bb079b6 100644 --- a/xlators/features/locks/src/posix.c +++ b/xlators/features/locks/src/posix.c @@ -1885,6 +1885,9 @@ fini (xlator_t *this) posix_locks_private_t *priv = NULL; priv = this->private; + if (!priv) + return 0; + this->private = NULL; GF_FREE (priv); return 0; |