fix:json parse error
This commit is contained in:
parent
5290c32fd1
commit
c549bc7183
|
@ -958,12 +958,14 @@ static int32_t smlParseJSONStringExt(SSmlHandle *info, cJSON *root, SSmlLineInfo
|
||||||
if (unlikely(ret)) {
|
if (unlikely(ret)) {
|
||||||
uError("OTD:0x%" PRIx64 " Unable to parse tags from JSON payload", info->id);
|
uError("OTD:0x%" PRIx64 " Unable to parse tags from JSON payload", info->id);
|
||||||
taosMemoryFree(elements->tags);
|
taosMemoryFree(elements->tags);
|
||||||
|
elements->tags = NULL;
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(info->dataFormat){
|
if(info->dataFormat){
|
||||||
taosMemoryFree(elements->tags);
|
taosMemoryFree(elements->tags);
|
||||||
|
elements->tags = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(unlikely(info->reRun)){
|
if(unlikely(info->reRun)){
|
||||||
|
|
Loading…
Reference in New Issue