summaryrefslogtreecommitdiffstats
path: root/server.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2009-11-11 13:24:42 +0000
committerNicholas Marriott <nicm@openbsd.org>2009-11-11 13:24:42 +0000
commit08a8ccf46b46213d694b250287107712701431c3 (patch)
tree37018401693ea75393dfe2e23dbd7fead53054b3 /server.c
parent2756437f4bd1c0def6877e3742f018b3fbb721da (diff)
Free the pane bufferevent when the fd is closed (the signal could come before
the error callback).
Diffstat (limited to 'server.c')
-rw-r--r--server.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/server.c b/server.c
index 209fcd07..d528319a 100644
--- a/server.c
+++ b/server.c
@@ -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;
}
}