Commit 187ee58c authored by Josef Bacik's avatar Josef Bacik Committed by Chris Mason

Btrfs: fix em leak in find_first_block_group

We need to call free_extent_map() on the em we look up.
Signed-off-by: default avatarJosef Bacik <jbacik@fb.com>
Reviewed-by: default avatarOmar Sandoval <osandov@fb.com>
Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
Signed-off-by: default avatarChris Mason <clm@fb.com>
parent 14238819
...@@ -9887,6 +9887,7 @@ static int find_first_block_group(struct btrfs_root *root, ...@@ -9887,6 +9887,7 @@ static int find_first_block_group(struct btrfs_root *root,
} else { } else {
ret = 0; ret = 0;
} }
free_extent_map(em);
goto out; goto out;
} }
path->slots[0]++; path->slots[0]++;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment