diff options
author | Zach Brown <zab@redhat.com> | 2013-01-24 10:38:28 -0800 |
---|---|---|
committer | Zach Brown <zab@redhat.com> | 2013-02-05 16:09:40 -0800 |
commit | 065fa46f5de017d6a01263623442b31f44e41cd2 (patch) | |
tree | dd2098c36152184a89710d9525a94c749f9941ef /find-root.c | |
parent | bf4196b408f963e335a3dccdcc8d6ab52985e996 (diff) |
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>
Diffstat (limited to 'find-root.c')
-rw-r--r-- | find-root.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/find-root.c b/find-root.c index 51e9a233..f5ca0956 100644 --- a/find-root.c +++ b/find-root.c @@ -385,6 +385,7 @@ static int find_root(struct btrfs_root *root) if (!(type & BTRFS_BLOCK_GROUP_METADATA)) { offset += map_length; + kfree(multi); continue; } |