ext4: Fix potential memory leak in ext4_fill_super
authorCyrill Gorcunov <gorcunov@gmail.com>
Tue, 27 Jul 2010 15:56:07 +0000 (11:56 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 27 Jul 2010 15:56:07 +0000 (11:56 -0400)
commitdcc7dae3cb21184a317f10a12250bd8d6f458077
tree1f40c22059a9ccbb0ef3ea6fde0e015290db2765
parent0c095c7f113e9fd05913d6e1b2cccbe356be039e
ext4: Fix potential memory leak in ext4_fill_super

Under heavy memory pressure we may hit out of memory
situation and as result kstrdup'ed options will not be
freed. Fix it.

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/super.c