From b5d8c2b16bcc0a2798023b5583f80d60d294a219 Mon Sep 17 00:00:00 2001 From: Joachim Wiberg Date: Fri, 20 Nov 2026 17:16:15 +0100 Subject: [PATCH] plugins: fix leak of unknown 'set' command in modules-load An unknown 'set foo' line in modules-load.d leaks the string returned by fgetval(). Free it before skipping the line. Signed-off-by: Joachim Wiberg --- plugins/modules-load.c | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/modules-load.c b/plugins/modules-load.c index e2e45c72..1693e337 100644 --- a/plugins/modules-load.c +++ b/plugins/modules-load.c @@ -156,6 +156,7 @@ static int modules_load(const char *file, int index) } /* unknown 'set' command, ignore. */ + free(set); goto next; }