diff options
author | Jim Meyering <meyering@redhat.com> | 2008-10-01 19:09:51 -0400 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2008-10-01 19:09:51 -0400 |
commit | 83afeac42c5680b0b70d64fb8c4724cf05483fc2 (patch) | |
tree | a81261351ae676ed02f86760c07ed73a63709c8f /fs/btrfs/disk-io.c | |
parent | 0463bb4e8d2f717a9bf3be6cc12c0aec51cc261d (diff) |
Btrfs: disk-io.c (open_ctree): avoid leaks upon allocation failure
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/disk-io.c')
-rw-r--r-- | fs/btrfs/disk-io.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c index 41b7d24d07e..0be044bb619 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); } |