Btrfs: fix em leak in find_first_block_group
authorJosef Bacik <jbacik@fb.com>
Thu, 18 Aug 2016 19:30:06 +0000 (15:30 -0400)
committerChris Mason <clm@fb.com>
Thu, 25 Aug 2016 10:58:29 +0000 (03:58 -0700)
commit187ee58c62c1d0d238d3dc4835869d33e1869906
treead8f62ffed2caf32e548358d80b92ca36b30423f
parent142388194191a3edc9ba01cfcfd8b691e0971fb2
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: Josef Bacik <jbacik@fb.com>
Reviewed-by: Omar Sandoval <osandov@fb.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/extent-tree.c