diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2012-12-14 15:08:30 +0100 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2012-12-14 15:08:30 +0100 |
commit | f522a3fc64cf95d36609ad4f0f9b119c3fba06a2 (patch) | |
tree | 0fbeb23d14038492be9b5d08e9530f8217d8be60 /plugins/imfile/imfile.c | |
parent | 1b1fb636f72f6fa6ee3dcd4eefc4203eb0a3e483 (diff) | |
download | rsyslog-f522a3fc64cf95d36609ad4f0f9b119c3fba06a2.tar.gz rsyslog-f522a3fc64cf95d36609ad4f0f9b119c3fba06a2.tar.bz2 rsyslog-f522a3fc64cf95d36609ad4f0f9b119c3fba06a2.zip |
bugfix: very minimal bugfix in imfile
not really relevant for production, a few KB were lost during initialization
phase if no state file was present
Diffstat (limited to 'plugins/imfile/imfile.c')
-rw-r--r-- | plugins/imfile/imfile.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/imfile/imfile.c b/plugins/imfile/imfile.c index d50f917e..0f155c10 100644 --- a/plugins/imfile/imfile.c +++ b/plugins/imfile/imfile.c @@ -246,6 +246,8 @@ finalize_it: strm.Destruct(&psSF); if(iRet != RS_RET_OK) { + if(pThis->pStrm != NULL) + strm.Destruct(&pThis->pStrm); CHKiRet(strm.Construct(&pThis->pStrm)); CHKiRet(strm.SettOperationsMode(pThis->pStrm, STREAMMODE_READ)); CHKiRet(strm.SetsType(pThis->pStrm, STREAMTYPE_FILE_MONITOR)); |