fix:memory problems where using tag

This commit is contained in:
wangmm0220 2022-07-21 13:57:48 +08:00
parent bc0e8e3061
commit 3f49a274ba
1 changed files with 1 additions and 1 deletions

View File

@ -1018,7 +1018,7 @@ static int32_t parseTagsClause(SInsertParseContext* pCxt, SSchema* pSchema, uint
end:
for (int i = 0; i < taosArrayGetSize(pTagVals); ++i) {
STagVal* p = (STagVal*)taosArrayGet(pTagVals, i);
if (IS_VAR_DATA_TYPE(p->type)) {
if (p->type == TSDB_DATA_TYPE_NCHAR) {
taosMemoryFree(p->pData);
}
}