ext2: Fix memory leak in ext2_fill_super() in case of a failed mount
authorManish Katiyar <mkatiyar@gmail.com>
Mon, 18 May 2009 03:52:51 +0000 (23:52 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 18 May 2009 03:52:51 +0000 (23:52 -0400)
Signed-off-by: Manish Katiyar <mkatiyar@gmail.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext2/super.c

index 5c4afe6..e3c748f 100644 (file)
@@ -1093,6 +1093,7 @@ failed_mount:
        brelse(bh);
 failed_sbi:
        sb->s_fs_info = NULL;
+       kfree(sbi->s_blockgroup_lock);
        kfree(sbi);
        return ret;
 }