Re: [patch] ext4: add a kfree() on error i add_new_gdb()

Ted Ts'o
2011-07-30T16:59:39Z

On Sat, Jul 30, 2011 at 11:25:57AM +0300, Dan Carpenter wrote:
> 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>

Added to the ext4 tree, thanks for catching this!!

- Ted