mirror of
https://github.com/swaywm/sway.git
synced 2025-01-22 08:46:45 +00:00
Fix memory leak in config.c
Thanks @jollywho
This commit is contained in:
parent
ac740271a5
commit
d969a1dec0
|
@ -285,6 +285,7 @@ bool read_config(FILE *file, bool is_active) {
|
||||||
line_number++;
|
line_number++;
|
||||||
line = strip_whitespace(line);
|
line = strip_whitespace(line);
|
||||||
if (line[0] == '#') {
|
if (line[0] == '#') {
|
||||||
|
free(line);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
struct cmd_results *res = config_command(line, block);
|
struct cmd_results *res = config_command(line, block);
|
||||||
|
|
Loading…
Reference in a new issue