From: Jesper Juhl Date: Sat, 13 May 2006 23:42:25 +0000 (+0200) Subject: mtd: fix memory leak in block2mtd_setup() X-Git-Tag: v2.6.18-rc1~1105^2~113 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a6550e57f9d074511cf420bdb802ab5e56edc3bb;p=pandora-kernel.git mtd: fix memory leak in block2mtd_setup() There's a mem leak in drivers/mtd/devices/block2mtd.c::block2mtd_setup() We can leak 'name' allocated with kmalloc in 'parse_name' if leave via the 'parse_err' macro since it contains a return but doesn't do any freeing. Spotted by coverity checker as bug 615. Signed-off-by: Jesper Juhl Signed-off-by: David Woodhouse --- Reading git-diff-tree failed