btrfs-progs: don't leak multi-bio in find_root()

It wasn't freed if it didn't find metadata.

Signed-off-by: Zach Brown <zab@redhat.com>
master
Zach Brown 2013-01-24 10:38:28 -08:00
parent bf4196b408
commit 065fa46f5d
1 changed files with 1 additions and 0 deletions

View File

@ -385,6 +385,7 @@ static int find_root(struct btrfs_root *root)
if (!(type & BTRFS_BLOCK_GROUP_METADATA)) {
offset += map_length;
kfree(multi);
continue;
}