提交 24e40fcc 编写于 作者: M Minglei Jin

fix memory issue

上级 c6b2b2f9
......@@ -124,12 +124,16 @@ int tdbBtreeOpen(int keyLen, int valLen, SPager *pPager, char const *tbname, SPg
if (ret < 0) {
return -1;
}
if (strcmp(TDB_MAINDB_NAME, tbname)) {
ret = tdbTbInsert(pPager->pEnv->pMainDb, tbname, strlen(tbname) + 1, &pgno, sizeof(SPgno), &txn);
if (ret < 0) {
return -1;
}
}
tdbUnrefPage(pPage);
tdbCommit(pPager->pEnv, &txn);
tdbTxnClose(&txn);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册