summaryrefslogtreecommitdiffstats
path: root/modules.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-03-29 10:23:09 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2008-03-29 10:23:09 +0000
commit4d2140ce0589c5c7ce33683211887468f82292ce (patch)
tree3615c35c4ce368800827a9b46b99d7557144853d /modules.c
parent3308c71ec8b5b8f61af4747a8cf9a651daf69c6d (diff)
downloadrsyslog-4d2140ce0589c5c7ce33683211887468f82292ce.tar.gz
rsyslog-4d2140ce0589c5c7ce33683211887468f82292ce.tar.xz
rsyslog-4d2140ce0589c5c7ce33683211887468f82292ce.zip
- bugfix: accidently set debug option in 3.12.5 reset to production This
option prevented dlclose() to be called. It had no real bad effects, as the modules were otherwise correctly deinitialized and dlopen() supports multiple opens of the same module without any memory footprint. - removed --enable-mudflap, added --enable-valgrind ./configure setting
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
}