delete some code

This commit is contained in:
yihaoDeng 2021-05-06 20:34:11 +08:00
parent 8dc64ed8e7
commit 9cd45522cc
1 changed files with 3 additions and 1 deletions

View File

@ -2535,7 +2535,9 @@ int32_t tscGetTableMeta(SSqlObj *pSql, STableMetaInfo *pTableMetaInfo) {
pTableMetaInfo->pTableMeta = calloc(1, size);
} else if (pTableMetaInfo->tableMetaSize < size) {
char *tmp = realloc(pTableMetaInfo->pTableMeta, size);
if (tmp == NULL) { return TSDB_CODE_TSC_OUT_OF_MEMORY;}
if (tmp == NULL) {
return TSDB_CODE_TSC_OUT_OF_MEMORY;
}
pTableMetaInfo->pTableMeta = (STableMeta *)tmp;
pTableMetaInfo->tableMetaSize = size;
} else {