commit | afc70ed05a07bfe171f7a5b8fdc80bdb073d314f | [log] [tgz] |
---|---|---|
author | Al Viro <viro@zeniv.linux.org.uk> | Sat Jan 23 23:38:27 2010 -0500 |
committer | Al Viro <viro@zeniv.linux.org.uk> | Tue Jan 26 22:22:24 2010 -0500 |
tree | 817642530572c378ceb2e5b56fb4f2b189beb11f | |
parent | b04da8bfdfbbd79544cab2fadfdc12e87eb01600 [diff] [blame] |
Fix a leak in affs_fill_super() Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
diff --git a/fs/affs/super.c b/fs/affs/super.c index 104fdcb..b2a5958 100644 --- a/fs/affs/super.c +++ b/fs/affs/super.c
@@ -316,6 +316,8 @@ &blocksize,&sbi->s_prefix, sbi->s_volume, &mount_flags)) { printk(KERN_ERR "AFFS: Error parsing options\n"); + kfree(sbi->s_prefix); + kfree(sbi); return -EINVAL; } /* N.B. after this point s_prefix must be released */