mirror of
https://github.com/troglobit/finit.git
synced 2026-11-20 19:41:51 +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>
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. */
|
/* unknown 'set' command, ignore. */
|
||||||
|
free(set);
|
||||||
goto next;
|
goto next;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user