From: Artem Bityutskiy Date: Tue, 31 May 2011 05:40:40 +0000 (+0300) Subject: UBIFS: fix memory leak on error path X-Git-Tag: v3.0-rc2~11^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=812eb258311f89bcd664a34a620f249d54a2cd83;p=pandora-kernel.git UBIFS: fix memory leak on error path UBIFS leaks memory on error path in 'ubifs_jnl_update()' in case of write failure because it forgets to free the 'struct ubifs_dent_node *dent' object. Although the object is small, the alignment can make it large - e.g., 2KiB if the min. I/O unit is 2KiB. Signed-off-by: Artem Bityutskiy Cc: stable@kernel.org --- Reading git-diff-tree failed