diff options
author | Drew DeVault <ddevault@linode.com> | 2016-01-21 11:18:13 -0500 |
---|---|---|
committer | Drew DeVault <ddevault@linode.com> | 2016-01-21 11:18:13 -0500 |
commit | d969a1dec0be697f6fe4bea52ea5559e768ef18f (patch) | |
tree | cbccaefb5597102443980e2050b32fe5d4692c96 /sway | |
parent | Strip stray whitespace (diff) | |
download | sway-d969a1dec0be697f6fe4bea52ea5559e768ef18f.tar.gz sway-d969a1dec0be697f6fe4bea52ea5559e768ef18f.tar.zst sway-d969a1dec0be697f6fe4bea52ea5559e768ef18f.zip |
Fix memory leak in config.c
Thanks @jollywho
Diffstat (limited to 'sway')
-rw-r--r-- | sway/config.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sway/config.c b/sway/config.c index debd480a..d8e1e938 100644 --- a/sway/config.c +++ b/sway/config.c | |||
@@ -285,6 +285,7 @@ bool read_config(FILE *file, bool is_active) { | |||
285 | line_number++; | 285 | line_number++; |
286 | line = strip_whitespace(line); | 286 | line = strip_whitespace(line); |
287 | if (line[0] == '#') { | 287 | if (line[0] == '#') { |
288 | free(line); | ||
288 | continue; | 289 | continue; |
289 | } | 290 | } |
290 | struct cmd_results *res = config_command(line, block); | 291 | struct cmd_results *res = config_command(line, block); |