aboutsummaryrefslogtreecommitdiff
path: root/sway
diff options
context:
space:
mode:
authorDrew DeVault <ddevault@linode.com>2016-01-21 11:18:13 -0500
committerDrew DeVault <ddevault@linode.com>2016-01-21 11:18:13 -0500
commitd969a1dec0be697f6fe4bea52ea5559e768ef18f (patch)
treecbccaefb5597102443980e2050b32fe5d4692c96 /sway
parentac740271a5908dfbbd3c3ca5295ff3a3a1084879 (diff)
Fix memory leak in config.c
Thanks @jollywho
Diffstat (limited to 'sway')
-rw-r--r--sway/config.c1
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) {
line_number++;
line = strip_whitespace(line);
if (line[0] == '#') {
+ free(line);
continue;
}
struct cmd_results *res = config_command(line, block);