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

Commit 83afeac4 authored by Jim Meyering's avatar Jim Meyering Committed by Chris Mason
Browse files

Btrfs: disk-io.c (open_ctree): avoid leaks upon allocation failure

parent 0463bb4e
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1699,6 +1699,8 @@ struct btrfs_root *open_ctree(struct super_block *sb,
	kfree(tree_root);
	bdi_destroy(&fs_info->bdi);
	kfree(fs_info);
	kfree(chunk_root);
	kfree(dev_root);
	return ERR_PTR(err);
}