[TD-948]
This commit is contained in:
parent
83ea39c5ff
commit
32d8837bd2
|
@ -318,7 +318,7 @@ SDataCols *tdNewDataCols(int maxRowSize, int maxCols, int maxRows) {
|
|||
pCols->maxPoints = maxRows;
|
||||
pCols->bufSize = maxRowSize * maxRows;
|
||||
|
||||
pCols->buf = calloc(pCols->bufSize);
|
||||
pCols->buf = calloc(1, pCols->bufSize);
|
||||
if (pCols->buf == NULL) {
|
||||
free(pCols);
|
||||
return NULL;
|
||||
|
|
Loading…
Reference in New Issue