From c549bc718344ff758337a22ca0843afea7a5b4cc Mon Sep 17 00:00:00 2001 From: wangmm0220 Date: Fri, 30 Dec 2022 17:31:40 +0800 Subject: [PATCH] fix:json parse error --- source/client/src/clientSmlJson.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/client/src/clientSmlJson.c b/source/client/src/clientSmlJson.c index 180e89b694..bff4f49735 100644 --- a/source/client/src/clientSmlJson.c +++ b/source/client/src/clientSmlJson.c @@ -958,12 +958,14 @@ static int32_t smlParseJSONStringExt(SSmlHandle *info, cJSON *root, SSmlLineInfo if (unlikely(ret)) { uError("OTD:0x%" PRIx64 " Unable to parse tags from JSON payload", info->id); taosMemoryFree(elements->tags); + elements->tags = NULL; return ret; } } if(info->dataFormat){ taosMemoryFree(elements->tags); + elements->tags = NULL; } if(unlikely(info->reRun)){