aboutsummaryrefslogtreecommitdiff
path: root/input.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-07-15 11:26:13 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-07-15 11:26:13 +0000
commitf21ea97037bd11f2375fff5f82dc2d08d0d552b9 (patch)
tree6b8989bfdbd8f7dc1afb646e9735875e559e4a09 /input.c
parentterm: break out fork+exec functionality to a separate file (diff)
input: parse_key_binding: free key-codes list if 'bindings' is NULL
Diffstat (limited to 'input.c')
-rw-r--r--input.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/input.c b/input.c
index 2df8c73a..af0619ac 100644
--- a/input.c
+++ b/input.c
@@ -197,7 +197,8 @@ input_parse_key_binding(struct xkb_keymap *keymap, const char *combos,
};
tll_push_back(*bindings, binding);
- }
+ } else
+ tll_free(key_codes);
}
free(copy);