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

the error callback).
pull/1/head
Nicholas Marriott 2009-11-11 13:24:42 +00:00
parent 2756437f4b
commit 08a8ccf46b
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}
}