From 44457789fd67168c37932060f9a991f0c611e5a2 Mon Sep 17 00:00:00 2001 From: Anna Sztukowska Date: Fri, 28 Jun 2024 12:32:16 +0200 Subject: [PATCH 113/201] config.c: Fix memory leak in load_containers() Fix memory leak in load_containers() in config.c reported by SAST analysis. Signed-off-by: Anna Sztukowska --- config.c | 1 + 1 file changed, 1 insertion(+) diff --git a/config.c b/config.c index 612e700d..cd2379bd 100644 --- a/config.c +++ b/config.c @@ -379,6 +379,7 @@ struct mddev_dev *load_containers(void) map = NULL; } free_mdstat(mdstat); + map_free(map); return rv; } -- 2.41.0