From f21ea97037bd11f2375fff5f82dc2d08d0d552b9 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Wed, 15 Jul 2020 13:26:13 +0200 Subject: input: parse_key_binding: free key-codes list if 'bindings' is NULL --- input.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'input.c') 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); -- cgit v1.3