From 065fa46f5de017d6a01263623442b31f44e41cd2 Mon Sep 17 00:00:00 2001 From: Zach Brown Date: Thu, 24 Jan 2013 10:38:28 -0800 Subject: [PATCH] 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 --- find-root.c | 1 + 1 file changed, 1 insertion(+) 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; }