Merge pull request #20007 from taosdata/fix/TD-22513-M
fix: memory leak of tfs
This commit is contained in:
commit
f7391a91c5
|
@ -80,7 +80,7 @@ STfs *tfsOpen(SDiskCfg *pCfg, int32_t ndisk) {
|
||||||
void tfsClose(STfs *pTfs) {
|
void tfsClose(STfs *pTfs) {
|
||||||
if (pTfs == NULL) return;
|
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]);
|
tfsDestroyTier(&pTfs->tiers[level]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue