fix: fix table meta memory leak issue

This commit is contained in:
dapan1121 2022-11-28 19:04:15 +08:00
parent 65adb259ff
commit 8daa8f3525
1 changed files with 2 additions and 0 deletions

View File

@ -842,11 +842,13 @@ int stmtUpdateTableUid(STscStmt* pStmt, SSubmitRsp* pRsp) {
if (code || NULL == pTableMeta) { if (code || NULL == pTableMeta) {
pIter = taosHashIterate(pStmt->exec.pBlockHash, pIter); pIter = taosHashIterate(pStmt->exec.pBlockHash, pIter);
finalCode = code; finalCode = code;
taosMemoryFree(pTableMeta);
continue; continue;
} }
pMeta->uid = pTableMeta->uid; pMeta->uid = pTableMeta->uid;
pStmt->bInfo.tbUid = pTableMeta->uid; pStmt->bInfo.tbUid = pTableMeta->uid;
taosMemoryFree(pTableMeta);
} }
pIter = taosHashIterate(pStmt->exec.pBlockHash, pIter); pIter = taosHashIterate(pStmt->exec.pBlockHash, pIter);