mirror of
https://github.com/tmate-io/tmate.git
synced 2024-11-08 09:14:22 +01:00
Workaround FreeBSD problems with deleting terms.
This commit is contained in:
parent
83393d3c87
commit
2013dc4266
8
tty.c
8
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);
|
||||
|
Loading…
Reference in New Issue
Block a user