summaryrefslogtreecommitdiffstats
path: root/modules.c
diff options
context:
space:
mode:
Diffstat (limited to 'modules.c')
-rw-r--r--modules.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules.c b/modules.c
index 9104ab7f..ad78e6e8 100644
--- a/modules.c
+++ b/modules.c
@@ -189,10 +189,10 @@ static void moduleDestruct(modInfo_t *pThis)
if(pThis->pszName != NULL)
free(pThis->pszName);
if(pThis->pModHdlr != NULL) {
-# if 0
- dlclose(pThis->pModHdlr);
+# ifdef VALGRIND
+# warning "dlclose disabled for valgrind"
# else
-# warning "dlclose disabled for valgrind, re-enable before release"
+ dlclose(pThis->pModHdlr);
# endif
}