diff options
author | Michael Biebl <biebl@debian.org> | 2011-03-26 19:16:55 +0100 |
---|---|---|
committer | Michael Biebl <biebl@debian.org> | 2011-03-26 19:16:55 +0100 |
commit | dea543841bb1f1c46586a68da21d55b44c6bf158 (patch) | |
tree | 46dd88ab15d5da40adae5ca8748f73e079df979a /plugins/imfile | |
parent | a362b3333f84518889cefc1706d4e6adaa92888c (diff) | |
download | rsyslog-dea543841bb1f1c46586a68da21d55b44c6bf158.tar.gz |
Imported Upstream version 5.7.9upstream/5.7.9
Diffstat (limited to 'plugins/imfile')
-rw-r--r-- | plugins/imfile/imfile.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/plugins/imfile/imfile.c b/plugins/imfile/imfile.c index acb58da..cac3a55 100644 --- a/plugins/imfile/imfile.c +++ b/plugins/imfile/imfile.c @@ -331,6 +331,11 @@ ENDrunInput */ BEGINwillRun CODESTARTwillRun + /* free config variables we do no longer needed */ + free(pszFileName); + free(pszFileTag); + free(pszStateFile); + if(iFilPtr == 0) { errmsg.LogError(0, RS_RET_NO_RUN, "No files configured to be monitored"); ABORT_FINALIZE(RS_RET_NO_RUN); @@ -398,6 +403,9 @@ CODESTARTafterRun persistStrmState(&files[i]); strm.Destruct(&(files[i].pStrm)); } + free(files[i].pszFileName); + free(files[i].pszTag); + free(files[i].pszStateFile); } if(pInputName != NULL) |