diff --git a/source/client/src/clientSml.c b/source/client/src/clientSml.c index 6f6d32ee39846f29cfd77a717e467ff544ec3681..15d150086033e6044e0ee2a110579dbce26579fc 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; }