fix: memory leak of tfs

This commit is contained in:
kailixu 2023-02-16 10:55:55 +08:00
parent fd379310f6
commit 7abe4a7824
1 changed files with 1 additions and 1 deletions

View File

@ -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]);
}