OSDN Git Service
(root)
/
sagit-ice-cold
/
kernel_xiaomi_msm8998.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0463bb4
)
Btrfs: disk-io.c (open_ctree): avoid leaks upon allocation failure
author
Jim Meyering
<meyering@redhat.com>
Wed, 1 Oct 2008 23:09:51 +0000
(19:09 -0400)
committer
Chris Mason
<chris.mason@oracle.com>
Wed, 1 Oct 2008 23:09:51 +0000
(19:09 -0400)
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/disk-io.c
patch
|
blob
|
history
diff --git
a/fs/btrfs/disk-io.c
b/fs/btrfs/disk-io.c
index
41b7d24
..
0be044b
100644
(file)
--- 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);
}