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 <t-itoh@jp.fujitsu.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>

authored by Tsutomu Itoh and committed by Chris Mason 5e540f77 91ca338d

+1
+1
fs/btrfs/disk-io.c
··· 1153 1153 } 1154 1154 btrfs_free_path(path); 1155 1155 if (ret) { 1156 + kfree(root); 1156 1157 if (ret > 0) 1157 1158 ret = -ENOENT; 1158 1159 return ERR_PTR(ret);