diff options
author | taiyu <[email protected]> | 2015-08-23 19:09:18 -0700 |
---|---|---|
committer | taiyu <[email protected]> | 2015-08-23 19:09:18 -0700 |
commit | c8415d7fef53a9efa776dcbbaa2c9c2d76ff8b49 (patch) | |
tree | 6316fab4aff82a5f3a6dbba2dc4057dd2a2d880d /sway/commands.c | |
parent | 9a7f48f87272dea8cb1e678673b2fe95dc993d68 (diff) |
split_string memory leaks cleanedup
Diffstat (limited to 'sway/commands.c')
-rw-r--r-- | sway/commands.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/commands.c b/sway/commands.c index 7ee8c558..21ff5c7f 100644 --- a/sway/commands.c +++ b/sway/commands.c @@ -129,7 +129,7 @@ static bool cmd_bindsym(struct sway_config *config, int argc, char **argv) { *key = sym; list_add(binding->keys, key); } - list_free(split); + free_flat_list(split); // TODO: Check if there are other commands with this key binding struct sway_mode *mode = config->current_mode; @@ -268,7 +268,7 @@ static bool cmd_floating_mod(struct sway_config *config, int argc, char **argv) } } } - list_free(split); + free_flat_list(split); if (!config->floating_mod) { sway_log(L_ERROR, "bindsym - unknown keys %s", argv[0]); return false; |