Messages in this thread | | | Subject | Re: [PATCH] mtd: fix memory leak in block2mtd_setup() | From | David Woodhouse <> | Date | Sun, 14 May 2006 01:43:37 +0100 |
| |
On Sun, 2006-05-14 at 01:42 +0200, Jesper Juhl wrote: > 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.
Applied; thanks.
-- dwmw2
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |