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 <troglobit@gmail.com>
(cherry picked from commit b5d8c2b16b)
This commit is contained in:
Joachim Wiberg committed 2026-11-20 18:03:32 +01:00
1 parent b350ad0d94
commit 4fcc7ba686
1 file changed
+1
+1
View File
@@ -156,6 +156,7 @@ static int modules_load(const char *file, int index)
} }
/* unknown 'set' command, ignore. */ /* unknown 'set' command, ignore. */
free(set);
goto next; goto next;
} }