Re: [PATCH] nvmem: core: Fix memleak in nvmem_add_cells_from_dt error path
From: Markus Elfring
Date: Wed Sep 11 2024 - 09:05:50 EST
…
> is outside of the valid range, the info.name alloc by kasprintf will
allocated by kasprintf()?
> cause memleak. Just free before return from nvmem_add_cells_from_dt
…
a memory leak? ()?
How do you think about to increase the application of scope-based resource management?
Regards,
Markus