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:
Haojun Liao 2024-08-09 23:10:12 +08:00 committed by GitHub
commit 07edc94efa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

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