commit | 8bc5191b261c4fd9a5e9052cebe04ce2ef05f2e7 | [log] [tgz] |
---|---|---|
author | Al Viro <viro@zeniv.linux.org.uk> | Thu Jan 19 13:54:36 2012 -0500 |
committer | Al Viro <viro@zeniv.linux.org.uk> | Thu Jan 19 13:54:36 2012 -0500 |
tree | e6cbfb89710d748909156c3f728fe3e1bf613816 | |
parent | 4134bf81ffd962f4de9bbeca55130d2238bd3698 [diff] |
qnx4: don't leak ->BitMap on late failure exits Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
diff --git a/fs/qnx4/inode.c b/fs/qnx4/inode.c index 3fd121c..6b00954 100644 --- a/fs/qnx4/inode.c +++ b/fs/qnx4/inode.c
@@ -256,7 +256,7 @@ if (IS_ERR(root)) { printk(KERN_ERR "qnx4: get inode failed\n"); ret = PTR_ERR(root); - goto out; + goto outb; } ret = -ENOMEM; @@ -269,6 +269,8 @@ outi: iput(root); + outb: + kfree(qs->BitMap); out: brelse(bh); outnobh: