Re: [PATCH 2/2] gpio: sim: simplify code with cleanup helpers

From: Dan Carpenter
Date: Fri Aug 11 2023 - 05:32:14 EST


On Fri, Aug 11, 2023 at 12:14:52PM +0300, Andy Shevchenko wrote:
> On Fri, Aug 11, 2023 at 08:20:11AM +0300, Dan Carpenter wrote:
>
> > smatch warnings:
> > drivers/gpio/gpio-sim.c:1472 gpio_sim_config_make_device_group() warn: possible memory leak of 'dev'
>
> Isn't smatch a bit dumb about cleanup.h?
>

Aw. Crud. I hadn't seen that this was a cleanup.h thing.

I did do some work to suppoort cleanup.h but probably it will take a
while to work out the kinks. Let me figure this out.

regards,
dan carpenter