projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f333adb
)
Btrfs: Fix memory leak at umount
author
Li Zefan
<lizf@cn.fujitsu.com>
Mon, 27 Dec 2010 08:19:53 +0000
(16:19 +0800)
committer
Li Zefan
<lizf@cn.fujitsu.com>
Wed, 26 Jan 2011 17:05:02 +0000
(
01:05
+0800)
fs_info, which is allocated in open_ctree(), should be freed
in close_ctree().
Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
fs/btrfs/disk-io.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/btrfs/disk-io.c
b/fs/btrfs/disk-io.c
index a5d2249e6da5b9d6ef4f52a691578bf18b060713..089871e5cd5ab1dc23a70349cf6d935391a960c5 100644
(file)
--- 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;
}