diff --git a/source/util/src/tarray.c b/source/util/src/tarray.c index 65a91663a3311a55914667774180c8005ac560f0..67c7b4af17feed4103c195e6e4bbd0b40a9dabf4 100644 --- a/source/util/src/tarray.c +++ b/source/util/src/tarray.c @@ -33,7 +33,7 @@ SArray* taosArrayInit(size_t size, size_t elemSize) { } pArray->size = 0; - pArray->pData = taosMemoryCalloc(size, elemSize); + pArray->pData = taosMemoryMalloc(size, elemSize); if (pArray->pData == NULL) { terrno = TSDB_CODE_OUT_OF_MEMORY; taosMemoryFree(pArray);