Browse Source

ext4: Fix memory leak in ext4_fill_super() in case of a failed mount

Signed-off-by: Manish Katiyar <mkatiyar@gmail.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Manish Katiyar 16 years ago
parent
commit
f68301656b
1 changed files with 1 additions and 0 deletions
  1. 1 0
      fs/ext4/super.c

+ 1 - 0
fs/ext4/super.c

@@ -2924,6 +2924,7 @@ failed_mount:
 	brelse(bh);
 out_fail:
 	sb->s_fs_info = NULL;
+	kfree(sbi->s_blockgroup_lock);
 	kfree(sbi);
 	lock_kernel();
 	return ret;