From: Jim Meyering Date: Wed, 1 Oct 2008 23:09:51 +0000 (-0400) Subject: Btrfs: disk-io.c (open_ctree): avoid leaks upon allocation failure X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=83afeac42c5680b0b70d64fb8c4724cf05483fc2;p=linux-beck.git Btrfs: disk-io.c (open_ctree): avoid leaks upon allocation failure Signed-off-by: Chris Mason --- diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c index 41b7d24d07e2..0be044bb6194 100644 --- a/fs/btrfs/disk-io.c +++ b/fs/btrfs/disk-io.c @@ -1699,6 +1699,8 @@ fail: kfree(tree_root); bdi_destroy(&fs_info->bdi); kfree(fs_info); + kfree(chunk_root); + kfree(dev_root); return ERR_PTR(err); }