diff --git a/src/client/src/tscLocal.c b/src/client/src/tscLocal.c index b25573e255a54e3ebc861153b549bc6c2db9f09b..c0a958a2c86b551425e0ab9f2db96cb8caaef775 100644 --- a/src/client/src/tscLocal.c +++ b/src/client/src/tscLocal.c @@ -658,7 +658,6 @@ static int32_t tscRebuildDDLForSubTable(SSqlObj *pSql, const char *tableName, ch snprintf(fullName + strlen(fullName), TSDB_TABLE_FNAME_LEN - strlen(fullName), ".%s", param->sTableName); extractTableName(pTableMetaInfo->name, param->buf); - //tstrncpy(param->tableName, pTableMetaInfo->name, TSDB_TABLE_FNAME_LEN); param->pParentSql = pSql; param->pInterSql = pInterSql; param->fp = tscRebuildCreateTableStatement; @@ -676,6 +675,7 @@ static int32_t tscRebuildDDLForSubTable(SSqlObj *pSql, const char *tableName, ch if (code != TSDB_CODE_SUCCESS) { free(param); free(pInterSql); + free(query); return code; }