fix: fix table meta memory leak issue
This commit is contained in:
parent
65adb259ff
commit
8daa8f3525
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue