diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2012-07-10 11:53:01 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2012-07-10 11:53:01 +0000 |
commit | df912e3540968a2a0b266e523ecc08bb2dc0ca20 (patch) | |
tree | c2c59d025e08aab048b251d1711ed655cdf115f6 /cmd-unbind-key.c | |
parent | a3391692ad5800ca034bbbdcd803924fc4e392ee (diff) | |
download | rtmux-df912e3540968a2a0b266e523ecc08bb2dc0ca20.tar.gz rtmux-df912e3540968a2a0b266e523ecc08bb2dc0ca20.tar.bz2 rtmux-df912e3540968a2a0b266e523ecc08bb2dc0ca20.zip |
xfree is not particularly helpful, remove it. From Thomas Adam.
Diffstat (limited to 'cmd-unbind-key.c')
-rw-r--r-- | cmd-unbind-key.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cmd-unbind-key.c b/cmd-unbind-key.c index 4a061061..ac6c0c0f 100644 --- a/cmd-unbind-key.c +++ b/cmd-unbind-key.c @@ -18,6 +18,8 @@ #include <sys/types.h> +#include <stdlib.h> + #include "tmux.h" /* @@ -100,7 +102,7 @@ cmd_unbind_key_table(struct cmd *self, struct cmd_ctx *ctx, int key) while (!RB_EMPTY(mtab->tree)) { mbind = RB_ROOT(mtab->tree); RB_REMOVE(mode_key_tree, mtab->tree, mbind); - xfree(mbind); + free(mbind); } return (0); } @@ -109,7 +111,7 @@ cmd_unbind_key_table(struct cmd *self, struct cmd_ctx *ctx, int key) mtmp.mode = !!args_has(args, 'c'); if ((mbind = RB_FIND(mode_key_tree, mtab->tree, &mtmp)) != NULL) { RB_REMOVE(mode_key_tree, mtab->tree, mbind); - xfree(mbind); + free(mbind); } return (0); } |