Btrfs: fix possible memory leaks in open_ctree()
authorWang Shilong <wangsl.fnst@cn.fujitsu.com>
Wed, 23 Apr 2014 11:33:35 +0000 (19:33 +0800)
committerChris Mason <clm@fb.com>
Thu, 24 Apr 2014 23:43:32 +0000 (16:43 -0700)
commit28c16cbbc32781224309e50cc99c684f2498bc59
tree5dab03fd6e797956a396bb231fc7e2e136cd69b9
parente60efa84252c059bde5f65fccc6af94478d39e3b
Btrfs: fix possible memory leaks in open_ctree()

Fix possible memory leaks in the following error handling paths:

read_tree_block()
btrfs_recover_log_trees
btrfs_commit_super()
btrfs_find_orphan_roots()
btrfs_cleanup_fs_roots()

Signed-off-by: Wang Shilong <wangsl.fnst@cn.fujitsu.com>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/disk-io.c