[TD-6442]<feature>: Support OpenTSDB telnet style data import format

This commit is contained in:
Ganlin Zhao 2021-08-30 16:08:08 +08:00
parent 4ae20f6abc
commit f53b9104d5
1 changed files with 0 additions and 2 deletions

View File

@ -138,7 +138,6 @@ static int32_t parseTelnetMetricValue(TAOS_SML_KV **pKVs, int *num_kvs, const ch
value = tcalloc(len + 1, 1);
memcpy(value, start, len);
} else {
tfree(*pKVs);
return TSDB_CODE_TSC_LINE_SYNTAX_ERROR;
}
@ -146,7 +145,6 @@ static int32_t parseTelnetMetricValue(TAOS_SML_KV **pKVs, int *num_kvs, const ch
tscError("OTD:0x%"PRIx64" Failed to convert metric value string(%s) to any type",
info->id, value);
tfree(value);
tfree(*pKVs);
return TSDB_CODE_TSC_LINE_SYNTAX_ERROR;
}
tfree(value);