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

index 599dbfe..d8b73d4 100644 (file)
@@ -2021,6 +2021,7 @@ failed_mount:
        brelse(bh);
 out_fail:
        sb->s_fs_info = NULL;
+       kfree(sbi->s_blockgroup_lock);
        kfree(sbi);
        lock_kernel();
        return ret;