diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2012-11-14 09:43:56 +0100 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2012-11-14 09:43:56 +0100 |
commit | ec60ec8496b4e445f07fa4a9e21eb0c8f4506c7f (patch) | |
tree | 9e24c30092809510bed53e85f782a1d3a8ee1f35 /plugins/imrelp/imrelp.c | |
parent | 9c62c6b227bd98f6d26610ce0461124518731d0f (diff) | |
download | rsyslog-ec60ec8496b4e445f07fa4a9e21eb0c8f4506c7f.tar.gz rsyslog-ec60ec8496b4e445f07fa4a9e21eb0c8f4506c7f.tar.bz2 rsyslog-ec60ec8496b4e445f07fa4a9e21eb0c8f4506c7f.zip |
bugfix: very small memory leak in imrelp
This is not a real problem (thus no ChangeLog entry): we leaked a few
bytes for every relp listener, but only at rsyslogd TERMINATION - where
obviously the OS does the cleanup. However, the leak could cause some
confusion with memory checkers like valgrind.
Diffstat (limited to 'plugins/imrelp/imrelp.c')
-rw-r--r-- | plugins/imrelp/imrelp.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/plugins/imrelp/imrelp.c b/plugins/imrelp/imrelp.c index fe987a50..5ee3b4b9 100644 --- a/plugins/imrelp/imrelp.c +++ b/plugins/imrelp/imrelp.c @@ -303,7 +303,14 @@ ENDactivateCnf BEGINfreeCnf + instanceConf_t *inst, *del; CODESTARTfreeCnf + for(inst = pModConf->root ; inst != NULL ; ) { + free(inst->pszBindPort); + del = inst; + inst = inst->next; + free(del); + } ENDfreeCnf /* This is used to terminate the plugin. Note that the signal handler blocks |