diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2011-07-21 13:55:45 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2011-07-21 13:55:45 +0200 |
commit | 63446424c057f527c9c17be7e06f306a130789b4 (patch) | |
tree | f860f85b933793bf49e26f18db33111b493f116e /runtime/modules.c | |
parent | 448f2eeea247fe4bf7bbbc982fb6df0f7a1b72f9 (diff) | |
download | rsyslog-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.c | 4 |
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" |