diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2007-12-06 21:26:22 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2007-12-06 21:26:22 +0000 |
commit | 2013dc42669c62eab0f885b57d5b363ffce203df (patch) | |
tree | ac19f824ddde5e7d7a81c87e08a56f7db53eefcc /tty.c | |
parent | 83393d3c87b2b0706d1b3b442902a631cc078afa (diff) |
Workaround FreeBSD problems with deleting terms.
Diffstat (limited to 'tty.c')
-rw-r--r-- | tty.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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); |