aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorLi Zefan <lizf@cn.fujitsu.com>2010-12-27 03:19:53 -0500
committerLi Zefan <lizf@cn.fujitsu.com>2011-01-26 12:05:02 -0500
commit83a4d54840c88a4a45c49670f044b8c7ddeaa8c7 (patch)
treea2a9290eb6dec1dd7d0bcb51a4006a363e203b99 /fs
parentf333adb5d64bc1c4d6099072fc341c3c8f84e0cf (diff)
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 <lizf@cn.fujitsu.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/btrfs/disk-io.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c
index a5d2249e6da..089871e5cd5 100644
--- a/fs/btrfs/disk-io.c
+++ b/fs/btrfs/disk-io.c
@@ -2513,6 +2513,8 @@ int close_ctree(struct btrfs_root *root)
2513 kfree(fs_info->chunk_root); 2513 kfree(fs_info->chunk_root);
2514 kfree(fs_info->dev_root); 2514 kfree(fs_info->dev_root);
2515 kfree(fs_info->csum_root); 2515 kfree(fs_info->csum_root);
2516 kfree(fs_info);
2517
2516 return 0; 2518 return 0;
2517} 2519}
2518 2520