Merge pull request #28242 from taosdata/fix/3.0/TD-32450

fix:[TD-32450] Use taosArrayDestroyEx when error occurs to avoid mem …
This commit is contained in:
Pan Wei 2024-10-09 09:11:00 +08:00 committed by GitHub
commit 5c1467c9a7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -3809,13 +3809,13 @@ int32_t fltInitFromNode(SNode *tree, SFilterInfo *info, uint32_t options) {
SFltBuildGroupCtx tctx = {.info = info, .group = group};
nodesWalkExpr(tree, fltTreeToGroup, (void *)&tctx);
if (TSDB_CODE_SUCCESS != tctx.code) {
taosArrayDestroy(group);
taosArrayDestroyEx(group, filterFreeGroup);
code = tctx.code;
goto _return;
}
code = filterConvertGroupFromArray(info, group);
if (TSDB_CODE_SUCCESS != code) {
taosArrayDestroy(group);
taosArrayDestroyEx(group, filterFreeGroup);
goto _return;
}
taosArrayDestroy(group);