Merge pull request #27178 from taosdata/fix/3.0/TD-31381
fix:[TD-31381] avoid double free.
This commit is contained in:
commit
0c2e9a048d
|
@ -2798,6 +2798,8 @@ int32_t filterRewrite(SFilterInfo *info, SFilterGroupCtx **gRes, int32_t gResNum
|
||||||
|
|
||||||
FILTER_SET_FLAG(oinfo.status, FI_STATUS_CLONED);
|
FILTER_SET_FLAG(oinfo.status, FI_STATUS_CLONED);
|
||||||
|
|
||||||
|
(void)memset(info, 0, sizeof(*info));
|
||||||
|
|
||||||
SFilterGroupCtx *res = NULL;
|
SFilterGroupCtx *res = NULL;
|
||||||
SFilterColInfo *colInfo = NULL;
|
SFilterColInfo *colInfo = NULL;
|
||||||
int32_t optr = 0;
|
int32_t optr = 0;
|
||||||
|
@ -2808,8 +2810,6 @@ int32_t filterRewrite(SFilterInfo *info, SFilterGroupCtx **gRes, int32_t gResNum
|
||||||
FLT_ERR_JRET(terrno);
|
FLT_ERR_JRET(terrno);
|
||||||
}
|
}
|
||||||
|
|
||||||
(void)memset(info, 0, sizeof(*info));
|
|
||||||
|
|
||||||
info->colRangeNum = oinfo.colRangeNum;
|
info->colRangeNum = oinfo.colRangeNum;
|
||||||
info->colRange = oinfo.colRange;
|
info->colRange = oinfo.colRange;
|
||||||
oinfo.colRangeNum = 0;
|
oinfo.colRangeNum = 0;
|
||||||
|
|
Loading…
Reference in New Issue