From d969a1dec0be697f6fe4bea52ea5559e768ef18f Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Thu, 21 Jan 2016 11:18:13 -0500 Subject: Fix memory leak in config.c Thanks @jollywho --- sway/config.c | 1 + 1 file changed, 1 insertion(+) (limited to 'sway') 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); -- cgit v1.2.3