Btrfs-progs: free path if we don't find root item
authorRakesh Pandit <rakesh@tuxera.com>
Fri, 28 Feb 2014 17:27:06 +0000 (19:27 +0200)
committerChris Mason <clm@fb.com>
Fri, 21 Mar 2014 13:23:32 +0000 (06:23 -0700)
commit31afed36899169cdb22c8bba16f8075aeae4007f
tree04cd43a50007cb92d9ecc07f8df15d6f84f9ea65
parentb5fe148715ea295e2b951ec6c90409b9d81978d8
Btrfs-progs: free path if we don't find root item

In btrfs_find_last_root before returning with -ENOENT (if root item is
not found) free path and also remove btrfs_release_path before
btrfs_free_path because btrfs_free_path anyway calls it.

Signed-off-by: Rakesh Pandit <rakesh@tuxera.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Chris Mason <clm@fb.com>
root-tree.c