From 3f49a274ba4c4b40c94b714297f8d3608aad1520 Mon Sep 17 00:00:00 2001 From: wangmm0220 Date: Thu, 21 Jul 2022 13:57:48 +0800 Subject: [PATCH] fix:memory problems where using tag --- source/libs/parser/src/parInsert.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/libs/parser/src/parInsert.c b/source/libs/parser/src/parInsert.c index c6b608ddb4..d6369157b0 100644 --- a/source/libs/parser/src/parInsert.c +++ b/source/libs/parser/src/parInsert.c @@ -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); } }