Merge pull request #27030 from taosdata/fix/TD-31226

fix(tdb/table): failed with btc open
This commit is contained in:
Hongze Cheng 2024-08-07 17:50:22 +08:00 committed by GitHub
commit 7bd499c1dc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 1 deletions

View File

@ -224,7 +224,10 @@ int tdbTbcOpen(TTB *pTb, TBC **ppTbc, TXN *pTxn) {
return -1;
}
(void)tdbBtcOpen(&pTbc->btc, pTb->pBt, pTxn);
if (tdbBtcOpen(&pTbc->btc, pTb->pBt, pTxn)) {
taosMemoryFree(pTbc);
return -1;
}
*ppTbc = pTbc;
return 0;