summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
authorVijay Bellur <vbellur@redhat.com>2018-08-12 17:28:07 -0700
committerAmar Tumballi <amarts@redhat.com>2018-08-24 07:08:16 +0000
commit52efadc48684a800ab93eac6d2d92f8f34495e53 (patch)
tree90d40e455d10282af8748baa79395afdc4e2eede /xlators
parent74475e878da1f9770ee7402a809eb911d846a2a7 (diff)
features/cloudsync: Fix various resource leaks
Addresses CID: 1394648, 1394653 Change-Id: Ie75d4a268bba090faa5c3fe0e87f0e5cef3ff773 updates: bz#789278 Signed-off-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'xlators')
-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;
}