use malloc for more efficent

This commit is contained in:
Hongze Cheng 2020-07-20 15:19:15 +08:00
parent 31824d9ffa
commit 9bb9d7a2a8
1 changed files with 1 additions and 1 deletions

View File

@ -318,7 +318,7 @@ SDataCols *tdNewDataCols(int maxRowSize, int maxCols, int maxRows) {
pCols->maxPoints = maxRows;
pCols->bufSize = maxRowSize * maxRows;
pCols->buf = calloc(1, pCols->bufSize);
pCols->buf = malloc(pCols->bufSize);
if (pCols->buf == NULL) {
free(pCols);
return NULL;