diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2011-03-11 15:45:44 +0100 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2011-03-11 15:45:44 +0100 |
commit | 804cbee541f24f61be41d6405754bf082da288a0 (patch) | |
tree | 781d68bc788cf5b8264332fd3271e57a0177f2ad /plugins | |
parent | d5d1c2c2a9897f5aaefaa70d8a81e7192c8c73eb (diff) | |
download | rsyslog-804cbee541f24f61be41d6405754bf082da288a0.tar.gz rsyslog-804cbee541f24f61be41d6405754bf082da288a0.tar.xz rsyslog-804cbee541f24f61be41d6405754bf082da288a0.zip |
bugfix: very minor memory leak in imfile
almost cosmetic: leaks a few bytes once during a run -- more a problem
for valgrind testing -- not for practical use
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/imfile/imfile.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/imfile/imfile.c b/plugins/imfile/imfile.c index de71fb74..0b24d08d 100644 --- a/plugins/imfile/imfile.c +++ b/plugins/imfile/imfile.c @@ -294,6 +294,11 @@ BEGINrunInput int i; int bHadFileData; /* were there at least one file with data during this run? */ CODESTARTrunInput + /* free config vars that are still allocated (at this point, we do no longer need them) */ + free(pszFileName); + free(pszFileTag); + free(pszStateFile); + pthread_cleanup_push(inputModuleCleanup, NULL); while(glbl.GetGlobalInputTermState() == 0) { do { |