Merge pull request #27030 from taosdata/fix/TD-31226
fix(tdb/table): failed with btc open
This commit is contained in:
commit
7bd499c1dc
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue