fix:[TD-31812] fix memory leak when error occurs in fltOptimizeNodes.

This commit is contained in:
Jing Sima 2024-08-30 10:56:37 +08:00
parent 5ed423a4ad
commit f6f4c4ddbc
1 changed files with 1 additions and 1 deletions

View File

@ -5113,7 +5113,7 @@ int32_t fltOptimizeNodes(SFilterInfo *pInfo, SNode **pNode, SFltTreeStat *pStat)
FLT_ERR_JRET(fltSclCollectOperators(*pNode, sclOpList));
SArray *colRangeList = taosArrayInit(16, sizeof(SFltSclColumnRange));
if (NULL == colRangeList) {
FLT_ERR_RET(terrno);
FLT_ERR_JRET(terrno);
}
FLT_ERR_JRET(fltSclProcessCNF(sclOpList, colRangeList));
pInfo->sclCtx.fltSclRange = colRangeList;