btrfs: Fix memory leak in btrfs_read_fs_root_no_radix()
authorTsutomu Itoh <[email protected]>
Mon, 27 Dec 2010 06:53:10 +0000 (06:53 +0000)
committerChris Mason <[email protected]>
Sun, 16 Jan 2011 16:30:20 +0000 (11:30 -0500)
commit5e540f7715b8cd83b8e60beaaa525b125cc122de
tree93ce1b3e22354c8d8e477ee56b925a44e7b9713e
parent91ca338d776e0cefb255bf2979b6448febd880f5
btrfs: Fix memory leak in btrfs_read_fs_root_no_radix()

In btrfs_read_fs_root_no_radix(), 'root' is not freed if
btrfs_search_slot() returns error.

Signed-off-by: Tsutomu Itoh <[email protected]>
Signed-off-by: Chris Mason <[email protected]>
fs/btrfs/disk-io.c