From e354f13b87d69eb1dc771cc3c428a4d2068d8217 Mon Sep 17 00:00:00 2001 From: shenglian zhou Date: Fri, 25 Mar 2022 17:59:51 +0800 Subject: [PATCH] fix bugs --- src/client/src/tscParseLineProtocol.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/client/src/tscParseLineProtocol.c b/src/client/src/tscParseLineProtocol.c index 3488bdbc78..ffc58e56d9 100644 --- a/src/client/src/tscParseLineProtocol.c +++ b/src/client/src/tscParseLineProtocol.c @@ -920,8 +920,6 @@ static int32_t doRunInsertSQL(TAOS* taos, char* sql, SSmlLinesInfo* info) { } } while (tryAgain); - free(sql); - return code; } @@ -990,6 +988,7 @@ static int32_t applyDataPointsWithSqlInsert(TAOS* taos, TAOS_SML_DATA_POINT* poi tscDebug("SML:0x%"PRIx64" successfully applied data points", info->id); cleanup: + free(sql); pCTablePoints = taosHashIterate(cname2points, NULL); while (pCTablePoints) { SArray* pPoints = *pCTablePoints; -- GitLab