=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/window.c,v retrieving revision 1.281 retrieving revision 1.282 diff -u -r1.281 -r1.282 --- src/usr.bin/tmux/window.c 2022/06/17 07:28:05 1.281 +++ src/usr.bin/tmux/window.c 2022/08/24 07:22:30 1.282 @@ -1,4 +1,4 @@ -/* $OpenBSD: window.c,v 1.281 2022/06/17 07:28:05 nicm Exp $ */ +/* $OpenBSD: window.c,v 1.282 2022/08/24 07:22:30 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -1033,6 +1033,8 @@ wp->event = bufferevent_new(wp->fd, window_pane_read_callback, NULL, window_pane_error_callback, wp); + if (wp->event == NULL) + fatalx("out of memory"); wp->ictx = input_init(wp, wp->event, &wp->palette); bufferevent_enable(wp->event, EV_READ|EV_WRITE);