summaryrefslogtreecommitdiff
path: root/usr.bin/tmux
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2009-11-11 13:24:43 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2009-11-11 13:24:43 +0000
commit13ab8521bb6379548214d048c7b3bb660a1010a8 (patch)
tree25ea529f9c61ff2a2efda357badd6cdae5f5ca7e /usr.bin/tmux
parent774e9a7c588aab9b75b8501568a7aa7ec82f3735 (diff)
Free the pane bufferevent when the fd is closed (the signal could come before
the error callback).
Diffstat (limited to 'usr.bin/tmux')
-rw-r--r--usr.bin/tmux/server.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/tmux/server.c b/usr.bin/tmux/server.c
index fbdb2f25754..e4b336b109f 100644
--- a/usr.bin/tmux/server.c
+++ b/usr.bin/tmux/server.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: server.c,v 1.75 2009/11/11 08:00:42 nicm Exp $ */
+/* $OpenBSD: server.c,v 1.76 2009/11/11 13:24:42 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -450,6 +450,7 @@ server_child_exited(pid_t pid, int status)
TAILQ_FOREACH(wp, &w->panes, entry) {
if (wp->pid == pid) {
close(wp->fd);
+ bufferevent_free(wp->event);
wp->fd = -1;
}
}