fix: memory sanitizer error

This commit is contained in:
shenglian zhou 2023-10-23 19:40:27 +08:00
parent 0cfbcd7a13
commit 65cfc13703
1 changed files with 2 additions and 0 deletions

View File

@ -1892,6 +1892,7 @@ static int32_t parseInsertStbClauseBottom(SInsertParseContext* pCxt, SVnodeModif
SBoundColInfo stbBoundColInfo;
insInitBoundColsInfo(tblInfo.numOfColumns + tblInfo.numOfTags + 1, &stbBoundColInfo);
if (!pStmt->pBoundCols) {
insDestroyBoundColInfo(&stbBoundColInfo);
return buildSyntaxErrMsg(&pCxt->msg, "(...tbname...) bounded cols is expected", pStmt->pSql);
}
SToken token;
@ -1906,6 +1907,7 @@ static int32_t parseInsertStbClauseBottom(SInsertParseContext* pCxt, SVnodeModif
if (TSDB_CODE_SUCCESS == code) {
code = parseDataClause(pCxt, pStmt, rowsDataCxt);
}
insDestroyBoundColInfo(&stbBoundColInfo);
return code;
}