summaryrefslogtreecommitdiffstats
path: root/tty.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2007-12-06 21:26:22 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2007-12-06 21:26:22 +0000
commit2013dc42669c62eab0f885b57d5b363ffce203df (patch)
treeac19f824ddde5e7d7a81c87e08a56f7db53eefcc /tty.c
parent83393d3c87b2b0706d1b3b442902a631cc078afa (diff)
Workaround FreeBSD problems with deleting terms.
Diffstat (limited to 'tty.c')
-rw-r--r--tty.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/tty.c b/tty.c
index 0d38b11e..aca5ce46 100644
--- a/tty.c
+++ b/tty.c
@@ -1,4 +1,4 @@
-/* $Id: tty.c,v 1.13 2007-12-06 20:53:48 nicm Exp $ */
+/* $Id: tty.c,v 1.14 2007-12-06 21:26:22 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -273,8 +273,14 @@ tty_free_term(struct tty_term *term)
TAILQ_REMOVE(&tty_terms, term, entry);
+#ifdef __FreeBSD___
+/*
+ * XXX XXX XXX FIXME FIXME
+ * FreeBSD 6.2 crashes with a double-free somewhere under here.
+ */
if (term->term != NULL)
del_curterm(term->term);
+#endif
xfree(term->name);
xfree(term);