btrfs-progs: check: lowmem: release path in repair_extent_data_item()

In repair_extent_data_item(), path is not released if some errors occurs
which causes extent buffer leak.

Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: Su Yue <suy.fnst@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.com>
master
Su Yue 2018-02-08 11:27:20 +08:00 committed by David Sterba
parent a8070228ab
commit 3f00e00912
1 changed files with 1 additions and 0 deletions

View File

@ -2597,6 +2597,7 @@ static int repair_extent_data_item(struct btrfs_trans_handle *trans,
err &= ~BACKREF_MISSING;
out:
btrfs_release_path(&path);
if (ret)
error("can't repair root %llu extent data item[%llu %llu]",
root->objectid, disk_bytenr, num_bytes);