diff options
author | Li Zefan <lizf@cn.fujitsu.com> | 2010-12-27 09:19:53 +0100 |
---|---|---|
committer | Li Zefan <lizf@cn.fujitsu.com> | 2011-01-26 18:05:02 +0100 |
commit | 83a4d54840c88a4a45c49670f044b8c7ddeaa8c7 (patch) | |
tree | a2a9290eb6dec1dd7d0bcb51a4006a363e203b99 /fs/btrfs/disk-io.c | |
parent | btrfs: Check mergeable free space when removing a cluster (diff) | |
download | linux-83a4d54840c88a4a45c49670f044b8c7ddeaa8c7.tar.xz linux-83a4d54840c88a4a45c49670f044b8c7ddeaa8c7.zip |
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/btrfs/disk-io.c')
-rw-r--r-- | fs/btrfs/disk-io.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c index a5d2249e6da5..089871e5cd5a 100644 --- a/fs/btrfs/disk-io.c +++ b/fs/btrfs/disk-io.c @@ -2513,6 +2513,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; } |