[td-225]fix invalid free.

This commit is contained in:
Haojun Liao 2021-04-25 12:29:22 +08:00
parent 3e5aec6742
commit c4f03061d2
1 changed files with 5 additions and 0 deletions

View File

@ -6351,6 +6351,11 @@ int32_t createQueryFunc(SQueriedTableInfo* pTableInfo, int32_t numOfOutput, SExp
for (int32_t i = 0; i < numOfOutput; ++i) {
pExprs[i].base = *pExprMsg[i];
memset(pExprs[i].base.param, 0, sizeof(tVariant) * tListLen(pExprs[i].base.param));
for (int32_t j = 0; j < pExprMsg[i]->numOfParams; ++j) {
tVariantAssign(&pExprs[i].base.param[j], &pExprMsg[i]->param[j]);
}
int16_t type = 0;
int16_t bytes = 0;