Free the pane bufferevent when the fd is closed (the signal could come before

the error callback).
This commit is contained in:
Nicholas Marriott 2009-11-11 13:24:42 +00:00
parent 2756437f4b
commit 08a8ccf46b

View File

@ -450,6 +450,7 @@ server_child_exited(pid_t pid, int status)
TAILQ_FOREACH(wp, &w->panes, entry) { TAILQ_FOREACH(wp, &w->panes, entry) {
if (wp->pid == pid) { if (wp->pid == pid) {
close(wp->fd); close(wp->fd);
bufferevent_free(wp->event);
wp->fd = -1; wp->fd = -1;
} }
} }