Re: [PATCH 0/2] nvdimm/btt: fix a few memory leaks

From: Alison Schofield

Date: Mon Jun 01 2026 - 19:03:41 EST


On Tue, May 19, 2026 at 11:20:11AM +0530, Abdun Nihaal wrote:
> The following two patches fix memory leak issues in error paths in the
> btt_init() and discover_arenas() functions.
>
> - nvdimm/btt: fix potential memory leak in btt_init()
> - nvdimm/btt: fix potential memory leak in discover_arenas()
>
> Compile tested only. Issue found using static analysis.
>
> Signed-off-by: Abdun Nihaal <nihaal@xxxxxxxxxxxxxx>


Hi Abdun,

Thanks for the patches!

I'm giving this my Reviewed-by Tag and will apply with some fixups
to the commit messages and the commit log of patch 2.

Sashiko noted 3 potential issues which I've worked thru to my
satisfaction (no changes needed) For future reference, I'd expect
you to come back around and offer comment on such complaints.

https://sashiko.dev/#/patchset/20260519-nvdimmleaks-v1-0-592300fb7a43%40cse.iitm.ac.in

Reviewed-by: Alison Schofield <alison.schofield@xxxxxxxxx>