未验证 提交 f7391a91 编写于 作者: D dapan1121 提交者: GitHub

Merge pull request #20007 from taosdata/fix/TD-22513-M

fix: memory leak of tfs
......@@ -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.
先完成此消息的编辑!
想要评论请 注册