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.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/xlators/features/cloudsync/src/cloudsync.c b/xlators/features/cloudsync/src/cloudsync.c
index e32181c22ab..d1f83f83da5 100644
--- a/xlators/features/cloudsync/src/cloudsync.c
+++ b/xlators/features/cloudsync/src/cloudsync.c
@@ -181,8 +181,14 @@ out:
mem_pool_destroy (this->local_pool);
cs_cleanup_private (priv);
+
+ if (handle) {
+ dlclose (handle);
+ }
}
+ GF_FREE (libpath);
+
return ret;
}