From 771a1e319429b46edd5864dc25cbfe6918cadcd3 Mon Sep 17 00:00:00 2001 From: wangmm0220 Date: Mon, 9 May 2022 20:46:00 +0800 Subject: [PATCH] refactor:fix error in schemaless --- source/client/src/clientSml.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/client/src/clientSml.c b/source/client/src/clientSml.c index 6f6d32ee39..15d1500860 100644 --- a/source/client/src/clientSml.c +++ b/source/client/src/clientSml.c @@ -1571,7 +1571,7 @@ static void smlDestroyInfo(SSmlHandle* info){ static SSmlHandle* smlBuildSmlInfo(TAOS* taos, SRequestObj* request, SMLProtocolType protocol, int8_t precision, bool dataFormat){ int32_t code = TSDB_CODE_SUCCESS; - SSmlHandle* info = taosMemoryMalloc(sizeof(SSmlHandle)); + SSmlHandle* info = taosMemoryCalloc(1, sizeof(SSmlHandle)); if (NULL == info) { return NULL; }