diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2008-03-20 09:31:05 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2008-03-20 09:31:05 +0000 |
commit | 06ffec1c3f9e566993d372cc686c8ae7307c5de0 (patch) | |
tree | 5bbc3fe7bec322540318ec2d2a564c5f09c48b71 /modules.c | |
parent | a00b06ea93a91f784cf8b41fc493e589a14a80b4 (diff) | |
download | rsyslog-06ffec1c3f9e566993d372cc686c8ae7307c5de0.tar.gz rsyslog-06ffec1c3f9e566993d372cc686c8ae7307c5de0.tar.xz rsyslog-06ffec1c3f9e566993d372cc686c8ae7307c5de0.zip |
bugfix: fixed some minor memory leaks
Diffstat (limited to 'modules.c')
-rw-r--r-- | modules.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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); } |