Merge pull request #27125 from taosdata/fix/3.0/TD-31355
fix:[TD-31355] use correct way to handle error.
This commit is contained in:
commit
07edc94efa
|
@ -2908,6 +2908,7 @@ int32_t filterGenerateColRange(SFilterInfo *info, SFilterGroupCtx **gRes, int32_
|
||||||
info->colRangeNum = colNum;
|
info->colRangeNum = colNum;
|
||||||
info->colRange = taosMemoryCalloc(colNum, POINTER_BYTES);
|
info->colRange = taosMemoryCalloc(colNum, POINTER_BYTES);
|
||||||
if (info->colRange == NULL) {
|
if (info->colRange == NULL) {
|
||||||
|
info->colRangeNum = 0;
|
||||||
FLT_ERR_JRET(TSDB_CODE_OUT_OF_MEMORY);
|
FLT_ERR_JRET(TSDB_CODE_OUT_OF_MEMORY);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue