btrfs: fix memory leak at umount
PATCH 1/1 btrfs: fix memory leak at umount
fs_info, which is allocated in open_ctree(), should be freed in close_ctree().
Signed-off-by Li Zefan <[email protected]>
---
candidate for stable ?
--- fs/btrfs/disk-io.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
fs/btrfs/disk-io.c +2 -0
@@ -2469,6 +2469,8 @@ int close_ctree(struct btrfs_root *root)kfree (fs_info->chunk_root);kfree (fs_info->dev_root);kfree (fs_info->csum_root); +kfree (fs_info); +return 0 ; }
Signature · 1 line
1.6.3