mirror of
https://github.com/kdave/btrfs-progs
synced 2025-02-04 11:51:42 +00:00
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>
This commit is contained in:
parent
bf4196b408
commit
065fa46f5d
@ -385,6 +385,7 @@ static int find_root(struct btrfs_root *root)
|
||||
|
||||
if (!(type & BTRFS_BLOCK_GROUP_METADATA)) {
|
||||
offset += map_length;
|
||||
kfree(multi);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user