diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2012-07-10 11:53:02 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2012-07-10 11:53:02 +0000 |
commit | 0ed606e0c38d62777110f204c4bccdfd890a34ea (patch) | |
tree | 48bd8518754ed4e6522fdbc3be9885313ad0a227 /usr.bin/tmux/control.c | |
parent | 8a386e18f9ebed887bd888ffd5bede8694b2ef62 (diff) |
xfree is not particularly helpful, remove it. From Thomas Adam.
Diffstat (limited to 'usr.bin/tmux/control.c')
-rw-r--r-- | usr.bin/tmux/control.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.bin/tmux/control.c b/usr.bin/tmux/control.c index 88d97dcdf9b..d5e45b1e2ff 100644 --- a/usr.bin/tmux/control.c +++ b/usr.bin/tmux/control.c @@ -1,4 +1,4 @@ -/* $OpenBSD: control.c,v 1.1 2012/06/18 13:16:42 nicm Exp $ */ +/* $OpenBSD: control.c,v 1.2 2012/07/10 11:53:01 nicm Exp $ */ /* * Copyright (c) 2012 Nicholas Marriott <nicm@users.sourceforge.net> @@ -20,6 +20,7 @@ #include <sys/types.h> #include <event.h> +#include <stdlib.h> #include <string.h> #include "tmux.h" @@ -110,12 +111,12 @@ control_callback(struct client *c, int closed, unused void *data) if (cmd_string_parse(line, &cmdlist, &cause) != 0) { control_write(c, "%%error in line \"%s\": %s", line, cause); - xfree(cause); + free(cause); } else { cmd_list_exec(cmdlist, &ctx); cmd_list_free(cmdlist); } - xfree(line); + free(line); } } |