diff --git a/src/client/src/tscUtil.c b/src/client/src/tscUtil.c index 5f254bdcf53de9cc78464a3d8ff532ebf11582df..365ee9ab252915966656bf9e423aaea4d7c83152 100644 --- a/src/client/src/tscUtil.c +++ b/src/client/src/tscUtil.c @@ -4561,9 +4561,8 @@ int32_t tscCreateTableMetaFromSTableMeta(SSqlObj *pSql, STableMeta** ppChild, co if (NULL == taosHashGetCloneExt(UTIL_GET_TABLEMETA(pSql), pChild->sTableName, strnlen(pChild->sTableName, TSDB_TABLE_FNAME_LEN), NULL, (void **)&p, &sz)) { tfree(p); - } else { - *ppSTable = p; - } + } + *ppSTable = p; // tableMeta exists, build child table meta according to the super table meta // the uid need to be checked in addition to the general name of the super table.