diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2009-11-11 13:24:42 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2009-11-11 13:24:42 +0000 |
commit | 08a8ccf46b46213d694b250287107712701431c3 (patch) | |
tree | 37018401693ea75393dfe2e23dbd7fead53054b3 /server.c | |
parent | 2756437f4bd1c0def6877e3742f018b3fbb721da (diff) | |
download | rtmux-08a8ccf46b46213d694b250287107712701431c3.tar.gz rtmux-08a8ccf46b46213d694b250287107712701431c3.tar.bz2 rtmux-08a8ccf46b46213d694b250287107712701431c3.zip |
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.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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; } } |