From: Manish Katiyar Date: Mon, 18 May 2009 03:52:51 +0000 (-0400) Subject: ext2: Fix memory leak in ext2_fill_super() in case of a failed mount X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=0f7ee7c17241915fdaff49d1a36f5aafd80a7dce;p=deliverable%2Flinux.git ext2: Fix memory leak in ext2_fill_super() in case of a failed mount Signed-off-by: Manish Katiyar Signed-off-by: "Theodore Ts'o" --- diff --git a/fs/ext2/super.c b/fs/ext2/super.c index 5c4afe652245..e3c748faf2db 100644 --- a/fs/ext2/super.c +++ b/fs/ext2/super.c @@ -1093,6 +1093,7 @@ failed_mount: brelse(bh); failed_sbi: sb->s_fs_info = NULL; + kfree(sbi->s_blockgroup_lock); kfree(sbi); return ret; }