History

qnx4: don't leak ->BitMap on late failure exits

Al Viro committed 14 years ago

Commit 8bc51911 parent 4134bf81 file · +3 −1Browse files

Unified · Split

fs/qnx4/inode.c+3−1
@@ -256,7 +256,7 @@ static int qnx4_fill_super(struct super_block *s, void *data, int silent) · 255 unmodified lines
256256 if (IS_ERR(root)) {
257257 printk(KERN_ERR "qnx4: get inode failed\n");
258258 ret = PTR_ERR(root);
259− goto out;
259+ goto outb;
260260 }
261261
262262 ret = -ENOMEM;
@@ -269,6 +269,8 @@ static int qnx4_fill_super(struct super_block *s, void *data, int silent) · 6 unmodified lines
269269
270270 outi:
271271 iput(root);
272+ outb:
273+ kfree(qs->BitMap);
272274 out:
273275 brelse(bh);
274276 outnobh:

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t