fix(tdb/table): failed with btc open

This commit is contained in:
Minglei Jin 2024-08-07 09:34:14 +08:00
parent a8eedcfdc6
commit 74726af145
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; return -1;
} }
(void)tdbBtcOpen(&pTbc->btc, pTb->pBt, pTxn); if (tdbBtcOpen(&pTbc->btc, pTb->pBt, pTxn)) {
taosMemoryFree(pTbc);
return -1;
}
*ppTbc = pTbc; *ppTbc = pTbc;
return 0; return 0;