From: Al Viro Date: Sun, 24 Jan 2010 04:38:27 +0000 (-0500) Subject: Fix a leak in affs_fill_super() X-Git-Tag: v3.0~6127^2~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=afc70ed05a07bfe171f7a5b8fdc80bdb073d314f;p=platform%2Fkernel%2Flinux-amlogic.git Fix a leak in affs_fill_super() Signed-off-by: Al Viro --- 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 @@ static int affs_fill_super(struct super_block *sb, void *data, int silent) &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 */