提交 7abe4a78 编写于 作者: K kailixu

fix: memory leak of tfs

上级 fd379310
......@@ -80,7 +80,7 @@ STfs *tfsOpen(SDiskCfg *pCfg, int32_t ndisk) {
void tfsClose(STfs *pTfs) {
if (pTfs == NULL) return;
for (int32_t level = 0; level < TFS_MAX_LEVEL; level++) {
for (int32_t level = 0; level <= TFS_MAX_LEVEL; level++) {
tfsDestroyTier(&pTfs->tiers[level]);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册