mirror of
https://github.com/troglobit/finit.git
synced 2026-11-23 20:11:44 +00:00
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:
1 file changed
+1
@@ -156,6 +156,7 @@ static int modules_load(const char *file, int index)
|
||||
}
|
||||
|
||||
/* unknown 'set' command, ignore. */
|
||||
free(set);
|
||||
goto next;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user