diff --git a/cmds-check.c b/cmds-check.c index 4fa8709b..8019fb0a 100644 --- a/cmds-check.c +++ b/cmds-check.c @@ -9226,8 +9226,7 @@ next: ret = 0; out: free_roots_info_cache(); - if (path) - btrfs_free_path(path); + btrfs_free_path(path); if (trans) btrfs_commit_transaction(trans, info->tree_root); if (ret < 0)