[TD-90] fix invalid read

This commit is contained in:
Tao Liu 2020-05-27 09:06:13 +00:00
parent 4076bc6124
commit 056b24c724
1 changed files with 1 additions and 1 deletions

View File

@ -237,7 +237,7 @@ void * tdNewTagRowFromSchema(STSchema *pSchema, int16_t numofTags) {
STagRow *row = malloc(size);
if (row == NULL) return NULL;
int32_t datasize = pSchema->tlen - pSchema->flen;
int32_t datasize = pSchema->tlen;
row->pData = malloc(datasize);
if (NULL == row->pData) {
free(row);