Re: [PATCH] rtc: rtc-sh - fix a memory leak
From: Paul Mundt
Date: Mon Nov 08 2010 - 00:56:37 EST
On Mon, Nov 08, 2010 at 01:35:10PM +0800, Axel Lin wrote:
> request_mem_region() will call kzalloc to allocate memory for struct resource.
> release_resource() unregisters the resource but does not free the allocated
> memory, thus use release_mem_region() instead to fix the memory leak.
>
> Signed-off-by: Axel Lin <axel.lin@xxxxxxxxx>
Good catch! Applied, thanks.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/