bugfix: (small) memory leak in omfile's outchannel code

Thanks to Koral Ilgun for reporting this issue.
This commit is contained in:
Rainer Gerhards 2015-01-08 16:57:18 +01:00
parent 98a0407323
commit 5e3d81f71b
2 changed files with 4 additions and 0 deletions

View File

@ -16,6 +16,8 @@ Version 8.7.0 [v8-stable] 2015-01-13
- bugfix: emit correct error message on config-file-not-found
closes https://github.com/rsyslog/rsyslog/issues/173
- bugfix: impstats emitted invalid JSON format (if JSON was selected)
- bugfix: (small) memory leak in omfile's outchannel code
Thanks to Koral Ilgun for reporting this issue.
------------------------------------------------------------------------------
Version 8.6.0 [v8-stable] 2014-12-02
NOTE: This version also incorporates all changes and enhancements made for

View File

@ -810,6 +810,7 @@ BEGINobjConstruct(strm) /* be sure to specify the object type also in END macro!
pThis->sType = STREAMTYPE_FILE_SINGLE;
pThis->sIOBufSize = glblGetIOBufSize();
pThis->tOpenMode = 0600;
pThis->pszSizeLimitCmd = NULL;
pThis->prevLineSegment = NULL;
ENDobjConstruct(strm)
@ -941,6 +942,7 @@ CODESTARTobjDestruct(strm)
free(pThis->pZipBuf);
free(pThis->pszCurrFName);
free(pThis->pszFName);
free(pThis->pszSizeLimitCmd);
pThis->bStopWriter = 2; /* RG: use as flag for destruction */
ENDobjDestruct(strm)