lkml.org 
[lkml]   [2006]   [May]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] mtd: fix memory leak in block2mtd_setup()
From
Date
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/

\
 
 \ /
  Last update: 2006-05-14 02:46    [W:0.028 / U:0.020 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site