mirror of
https://github.com/rsyslog/rsyslog.git
synced 2025-12-19 02:10:42 +01:00
config parser: potential double free on invalid config
commit 4aa6be5da6dc9a7bd921d02695f734c4097189a0 was incomplete Detected by Coverity scan, CID 185388
This commit is contained in:
parent
e0142012bf
commit
028d87170b
@ -257,7 +257,6 @@ DecodePropFilter(uchar *pline, struct cnfstmt *stmt)
|
||||
iRet = parsDelimCStr(pPars, &pCSPropName, ',', 1, 1, 1);
|
||||
if(iRet != RS_RET_OK) {
|
||||
parser_errmsg("error %d parsing filter property", iRet);
|
||||
rsParsDestruct(pPars);
|
||||
FINALIZE;
|
||||
}
|
||||
CHKiRet(msgPropDescrFill(&stmt->d.s_propfilt.prop, cstrGetSzStrNoNULL(pCSPropName),
|
||||
@ -267,7 +266,6 @@ DecodePropFilter(uchar *pline, struct cnfstmt *stmt)
|
||||
iRet = parsDelimCStr(pPars, &pCSCompOp, ',', 1, 1, 1);
|
||||
if(iRet != RS_RET_OK) {
|
||||
parser_errmsg("error %d compare operation property - ignoring selector", iRet);
|
||||
rsParsDestruct(pPars);
|
||||
FINALIZE;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user