Commit 83a4d548 authored by Li Zefan's avatar Li Zefan

Btrfs: Fix memory leak at umount

fs_info, which is allocated in open_ctree(), should be freed
in close_ctree().
Signed-off-by: default avatarLi Zefan <lizf@cn.fujitsu.com>
parent f333adb5
...@@ -2513,6 +2513,8 @@ int close_ctree(struct btrfs_root *root) ...@@ -2513,6 +2513,8 @@ int close_ctree(struct btrfs_root *root)
kfree(fs_info->chunk_root); kfree(fs_info->chunk_root);
kfree(fs_info->dev_root); kfree(fs_info->dev_root);
kfree(fs_info->csum_root); kfree(fs_info->csum_root);
kfree(fs_info);
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment