Re: [PATCH v2] class: Free the class private data in class_release

From: Artem Bityutskiy
Date: Wed Feb 10 2010 - 11:06:42 EST


On Wed, 2010-02-10 at 13:32 +0100, ext Laurent Pinchart wrote:
> Fix a memory leak by freeing the memory allocated in __class_register
> for the class private data.
>
> Signed-off-by: Laurent Pinchart <laurent.pinchart@xxxxxxxxxxxxxxxx>

Acked-by: Artem Bityutskiy <Artem.Bityutskiy@xxxxxxxxx>

Thanks for finding this. For reference, this was spotted with help of
the great kmemleak tool.

--
Best Regards,
Artem Bityutskiy (ÐÑÑÑÐ ÐÐÑÑÑÐÐÐ)

--
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/