summaryrefslogtreecommitdiffstats
path: root/modules.c
diff options
context:
space:
mode:
Diffstat (limited to 'modules.c')
-rw-r--r--modules.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/modules.c b/modules.c
index e6558a7e..98d8f281 100644
--- a/modules.c
+++ b/modules.c
@@ -188,8 +188,14 @@ static void moduleDestruct(modInfo_t *pThis)
assert(pThis != NULL);
if(pThis->pszName != NULL)
free(pThis->pszName);
- if(pThis->pModHdlr != NULL)
+ if(pThis->pModHdlr != NULL) {
+# if 0
dlclose(pThis->pModHdlr);
+# else
+# warning "dlclose disabled for valgrind, re-enable before release"
+# endif
+ }
+
free(pThis);
}