Memory leak

David Woodhouse dwmw2 at infradead.org
Mon Mar 10 12:04:23 EST 2003


On Mon, 2003-03-10 at 16:26, matsunaga wrote:
> You are correct again ;-)
>   kmem_cache_destroy(full_dnode_slab);
> and
>   kmem_cache_destroy(node_frag_slab);
> return error.

Aha, that's good. You're saying they _do_ return an error?

Please compile with CONFIG_JFFS2_FS_DEBUG=1 and capture all the messages
over a serial console. Add a printk to the allocation and free routines
for both the full_dnode and node_frag structures to print the address
which is allocated/freed. Then we can compare and find where structures
are allocated but not freed.

What exactly do you need to do to trigger this? Is it something special
about the particular file system image on your device?

-- 
dwmw2





More information about the linux-mtd mailing list