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-find-window.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-find-window.c')
-rw-r--r-- | cmd-find-window.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/cmd-find-window.c b/cmd-find-window.c index 9bd535f4..864f1821 100644 --- a/cmd-find-window.c +++ b/cmd-find-window.c @@ -19,6 +19,7 @@ #include <sys/types.h> #include <fnmatch.h> +#include <stdlib.h> #include <string.h> #include "tmux.h" @@ -134,7 +135,7 @@ cmd_find_window_exec(struct cmd *self, struct cmd_ctx *ctx) xasprintf(&sctx, "pane %u line %u: \"%s\"", i - 1, line + 1, sres); - xfree(sres); + free(sres); } } @@ -143,7 +144,7 @@ cmd_find_window_exec(struct cmd *self, struct cmd_ctx *ctx) break; } } - xfree(searchstr); + free(searchstr); if (ARRAY_LENGTH(&list_idx) == 0) { ctx->error(ctx, "no windows matching: %s", str); @@ -217,7 +218,7 @@ cmd_find_window_free(struct window_choose_data *cdata) cdata->session->references--; - xfree(cdata->ft_template); + free(cdata->ft_template); format_free(cdata->ft); - xfree(cdata); + free(cdata); } |