Re: [PATCH] workqueue: fix memory leak in wq_numa_init()

From: Tejun Heo
Date: Mon Aug 20 2018 - 12:00:42 EST


On Mon, Aug 20, 2018 at 12:05:50PM +0800, wang.yi59@xxxxxxxxxx wrote:
> Gentle ping :)
>
> > The 'tbl' variable may leak when return in function
> > wq_numa_init(), and this patch fixes this.
> >
> > Signed-off-by: Yi Wang <wang.yi59@xxxxxxxxxx>
> > Reviewed-by: Jiang Biao <jiang.biao2@xxxxxxxxxx>

It's a kernel bug path where we might as well crash. Whether the tbl
gets leaked or not doesn't matter.

Thanks.

--
tejun