ext2: Fix memory leak in ext2_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>
This commit is contained in:
parent
de5ce03730
commit
0f7ee7c172
@ -1093,6 +1093,7 @@ failed_mount:
|
||||
brelse(bh);
|
||||
failed_sbi:
|
||||
sb->s_fs_info = NULL;
|
||||
kfree(sbi->s_blockgroup_lock);
|
||||
kfree(sbi);
|
||||
return ret;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user