Resolves-coverity-id: 1260250
Signed-off-by: David Sterba <dsterba@suse.cz>
ret = PTR_ERR(trans);
fprintf(stderr, "Error starting transaction: %s\n",
strerror(-ret));
- return ret;
+ goto out_free_path;
}
cache = first_cache_extent(corrupt_blocks);
while (cache) {
cache = next_cache_extent(cache);
}
out:
- btrfs_free_path(path);
btrfs_commit_transaction(trans, root);
+out_free_path:
+ btrfs_free_path(path);
return ret;
}