ext4: add missing kfree() on error return path in add_new_gdb()
authorDan Carpenter <error27@gmail.com>
Sat, 30 Jul 2011 16:58:41 +0000 (12:58 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 30 Jul 2011 16:58:41 +0000 (12:58 -0400)
commitc49bafa3842751b8955a962859f42d307673d75d
tree6c738a314fd1e15043c0b1c3a1cc527758a38d56
parent59be8e7280c10fd8f078ba6dc2bcdc2b1453b6ab
ext4: add missing kfree() on error return path in add_new_gdb()

We added some more error handling in b40971426a "ext4: add error
checking to calls to ext4_handle_dirty_metadata()".  But we need to
call kfree() as well to avoid a memory leak.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/resize.c