Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -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]++;