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>
This commit is contained in:
Joachim Wiberg committed 2026-11-20 17:16:15 +01:00
1 parent f8c2927672
commit b5d8c2b16b
1 file changed
+1
+1
View File
@@ -156,6 +156,7 @@ static int modules_load(const char *file, int index)
}
/* unknown 'set' command, ignore. */
free(set);
goto next;
}