summaryrefslogtreecommitdiffstats
path: root/runtime/modules.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2011-07-21 13:55:45 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2011-07-21 13:55:45 +0200
commit63446424c057f527c9c17be7e06f306a130789b4 (patch)
treef860f85b933793bf49e26f18db33111b493f116e /runtime/modules.c
parent448f2eeea247fe4bf7bbbc982fb6df0f7a1b72f9 (diff)
downloadrsyslog-63446424c057f527c9c17be7e06f306a130789b4.tar.gz
rsyslog-63446424c057f527c9c17be7e06f306a130789b4.tar.xz
rsyslog-63446424c057f527c9c17be7e06f306a130789b4.zip
fixing minor memory leaks
Diffstat (limited to 'runtime/modules.c')
-rw-r--r--runtime/modules.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/modules.c b/runtime/modules.c
index f6b4bad9..0f132bdf 100644
--- a/runtime/modules.c
+++ b/runtime/modules.c
@@ -240,8 +240,8 @@ static rsRetVal moduleConstruct(modInfo_t **pThis)
static void moduleDestruct(modInfo_t *pThis)
{
assert(pThis != NULL);
- if(pThis->pszName != NULL)
- free(pThis->pszName);
+ free(pThis->pszName);
+ free(pThis->cnfName);
if(pThis->pModHdlr != NULL) {
# ifdef VALGRIND
# warning "dlclose disabled for valgrind"