Merge pull request #11290 from taosdata/fix/TD-14568

[TD-14568]<fix>: fix taosd crash issue
This commit is contained in:
Ganlin Zhao 2022-04-07 16:42:07 +08:00 committed by GitHub
commit 38406c4c41
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1264,7 +1264,7 @@ static void projectApplyFunctions(SExprInfo* pExpr, SSDataBlock* pResult, SSData
pResult->info.rows = pCtx[0].input.numOfRows;
} else if (pExpr[k].pExpr->nodeType == QUERY_NODE_VALUE) {
SVariant *pVal = pExpr->pExpr->pVal;
SVariant *pVal = pExpr[k].pExpr->pVal;
char *payload;
if (IS_VAR_DATA_TYPE(pVal->nType)) {
payload = taosMemoryCalloc(1, pVal->nLen + VARSTR_HEADER_SIZE);