summaryrefslogtreecommitdiffstats
path: root/tty.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2012-07-10 11:53:01 +0000
committerNicholas Marriott <nicm@openbsd.org>2012-07-10 11:53:01 +0000
commitdf912e3540968a2a0b266e523ecc08bb2dc0ca20 (patch)
treec2c59d025e08aab048b251d1711ed655cdf115f6 /tty.c
parenta3391692ad5800ca034bbbdcd803924fc4e392ee (diff)
xfree is not particularly helpful, remove it. From Thomas Adam.
Diffstat (limited to 'tty.c')
-rw-r--r--tty.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/tty.c b/tty.c
index ca65bdb3..d40e95d7 100644
--- a/tty.c
+++ b/tty.c
@@ -345,11 +345,11 @@ tty_free(struct tty *tty)
{
tty_close(tty);
- xfree(tty->ccolour);
+ free(tty->ccolour);
if (tty->path != NULL)
- xfree(tty->path);
+ free(tty->path);
if (tty->termname != NULL)
- xfree(tty->termname);
+ free(tty->termname);
}
void
@@ -468,7 +468,7 @@ tty_force_cursor_colour(struct tty *tty, const char *ccolour)
tty_putcode(tty, TTYC_CR);
else
tty_putcode_ptr1(tty, TTYC_CC, ccolour);
- xfree(tty->ccolour);
+ free(tty->ccolour);
tty->ccolour = xstrdup(ccolour);
}
@@ -1099,7 +1099,7 @@ tty_cmd_setselection(struct tty *tty, const struct tty_ctx *ctx)
b64_ntop(ctx->ptr, ctx->num, buf, off);
tty_putcode_ptr2(tty, TTYC_MS, "", buf);
- xfree(buf);
+ free(buf);
}
void