In repair_extent_data_item(), path is not be released if some errors occurs which causes extent buffer leak.
So release path in end of the function. Reviewed-by: Qu Wenruo <[email protected]> Signed-off-by: Su Yue <[email protected]> --- cmds-check.c | 1 + 1 file changed, 1 insertion(+) diff --git a/cmds-check.c b/cmds-check.c index 5fc0ea9d4f4d..ba2048004054 100644 --- a/cmds-check.c +++ b/cmds-check.c @@ -12005,6 +12005,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); -- 2.15.1 -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
