diff --git a/src/client/src/tscParseLineProtocol.c b/src/client/src/tscParseLineProtocol.c index 3488bdbc78a76c18154029c387f62b6645c17652..ffc58e56d94cf0c6e168822a09d13605aeb15dea 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;