fix:json parse error

This commit is contained in:
wangmm0220 2022-12-30 17:31:40 +08:00
parent 5290c32fd1
commit c549bc7183
1 changed files with 2 additions and 0 deletions

View File

@ -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)){