提交 cea5e9b1 编写于 作者: H Haojun Liao

refactor: do some internal refactor.

上级 010452e5
......@@ -33,7 +33,7 @@ SArray* taosArrayInit(size_t size, size_t elemSize) {
}
pArray->size = 0;
pArray->pData = taosMemoryMalloc(size, elemSize);
pArray->pData = taosMemoryMalloc(size * elemSize);
if (pArray->pData == NULL) {
terrno = TSDB_CODE_OUT_OF_MEMORY;
taosMemoryFree(pArray);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册