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

Abdun Nihaal posted 2 patches 5 days, 21 hours ago
drivers/nvdimm/btt.c | 14 ++++++++++----
1 file changed, 10 insertions(+), 4 deletions(-)
[PATCH 0/2] nvdimm/btt: fix a few memory leaks
Posted by Abdun Nihaal 5 days, 21 hours ago
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@cse.iitm.ac.in>
---
Abdun Nihaal (2):
      nvdimm/btt: fix potential memory leak in discover_arenas()
      nvdimm/btt: fix potential memory leak in btt_init()

 drivers/nvdimm/btt.c | 14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)
---
base-commit: e98d21c170b01ddef366f023bbfcf6b31509fa83
change-id: 20260519-nvdimmleaks-11f40a4af32a

Best regards,
-- 
Abdun Nihaal <nihaal@cse.iitm.ac.in>