[PATCH] Memory leak in mtd/chips/cfi_cmdset_0020

David Woodhouse dwmw2 at redhat.com
Mon Oct 6 10:46:09 EDT 2003


On Mon, 2003-10-06 at 11:45 -0300, Felipe W Damasio wrote:
> 	Hi David,
> 
> 	Patch against 2.6.0-test6.
> 
> 	- Frees a previous allocated kmalloced variable before returning NULL;
> 
> 	Found by smatch.

Applied; thanks. It'll be in the next update sent to Linus, when I get a
few spare moments for merging and testing.

Out of interest, why didn't smatch also find the same error 25 lines
further down?

-- 
dwmw2



More information about the linux-mtd mailing list