fix:memory leak for table meta

This commit is contained in:
wangmm0220 2022-12-01 10:56:51 +08:00
parent 9eae79a1f9
commit bf2808e45e
1 changed files with 1 additions and 0 deletions

View File

@ -559,6 +559,7 @@ static int32_t smlModifyDBSchemas(SSmlHandle *info) {
goto end; goto end;
} }
taosMemoryFreeClear(pTableMeta);
code = catalogRefreshTableMeta(info->pCatalog, &conn, &pName, -1); code = catalogRefreshTableMeta(info->pCatalog, &conn, &pName, -1);
if (code != TSDB_CODE_SUCCESS) { if (code != TSDB_CODE_SUCCESS) {
goto end; goto end;