summaryrefslogtreecommitdiffstats
path: root/xlators/features/cloudsync
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/features/cloudsync')
-rw-r--r--xlators/features/cloudsync/src/cloudsync.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/xlators/features/cloudsync/src/cloudsync.c b/xlators/features/cloudsync/src/cloudsync.c
index 26e512c3af1..0ad987ecf5f 100644
--- a/xlators/features/cloudsync/src/cloudsync.c
+++ b/xlators/features/cloudsync/src/cloudsync.c
@@ -200,8 +200,10 @@ cs_init(xlator_t *this)
out:
if (ret == -1) {
- if (this->local_pool)
+ if (this->local_pool) {
mem_pool_destroy(this->local_pool);
+ this->local_pool = NULL;
+ }
cs_cleanup_private(priv);