config parser: potential double free on invalid config

commit 4aa6be5da6dc9a7bd921d02695f734c4097189a0 was incomplete

Detected by Coverity scan, CID 185388
This commit is contained in:
Rainer Gerhards 2017-10-29 12:11:53 +01:00
parent e0142012bf
commit 028d87170b

View File

@ -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;
}