diff options
Diffstat (limited to 'libglusterfs')
-rw-r--r-- | libglusterfs/src/xlator.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libglusterfs/src/xlator.c b/libglusterfs/src/xlator.c index 9ce52407f9e..f3df8e2aeaf 100644 --- a/libglusterfs/src/xlator.c +++ b/libglusterfs/src/xlator.c @@ -149,10 +149,13 @@ xlator_volopt_dynload (char *xlator_type, void **dl_handle, } *dl_handle = handle; + handle = NULL; ret = 0; out: GF_FREE (name); + if (handle) + dlclose (handle); gf_log ("xlator", GF_LOG_DEBUG, "Returning %d", ret); return ret; |