]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: Fix memory leak on finding existing super
authorIan Kent <raven@themaw.net>
Mon, 27 Dec 2010 08:33:15 +0000 (16:33 +0800)
committerLi Zefan <lizf@cn.fujitsu.com>
Wed, 26 Jan 2011 17:05:07 +0000 (01:05 +0800)
commit4bf6b13cc163a67d9978ec96bb9677079e738396
tree906e0ae44bff82d3bdc03efbf5e42144b5e941ac
parentc6eb1b641bbcfac9a0868f72cb76b837c3b92e19
Btrfs: Fix memory leak on finding existing super

We missed a memory deallocation in commit 9ee89d38.

If an existing super block is found at mount and there is no
error condition then the pre-allocated tree_root and fs_info
are no not used and are not freeded.

Signed-off-by: Ian Kent <raven@themaw.net>
Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
fs/btrfs/super.c