[TD-90] fix invalid read
This commit is contained in:
parent
4076bc6124
commit
056b24c724
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue