summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/window.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2019-06-30 19:21:53 +0000
committernicm <nicm@openbsd.org>2019-06-30 19:21:53 +0000
commit7ecc8255d6ede9d23bf94e102e28c8b9fd032aed (patch)
treecaec8ecb6c7e4a3b515cfada7bcea13e5ef1f1ab /usr.bin/tmux/window.c
parentgetifaddrs() returns -1. (diff)
downloadwireguard-openbsd-7ecc8255d6ede9d23bf94e102e28c8b9fd032aed.tar.xz
wireguard-openbsd-7ecc8255d6ede9d23bf94e102e28c8b9fd032aed.zip
Do not double free window if pane fails to start.
Diffstat (limited to 'usr.bin/tmux/window.c')
-rw-r--r--usr.bin/tmux/window.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/window.c b/usr.bin/tmux/window.c
index 95b919154dd..2a97b40c35a 100644
--- a/usr.bin/tmux/window.c
+++ b/usr.bin/tmux/window.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: window.c,v 1.239 2019/06/26 18:44:22 nicm Exp $ */
+/* $OpenBSD: window.c,v 1.240 2019/06/30 19:21:53 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -338,7 +338,7 @@ window_create(u_int sx, u_int sy)
return (w);
}
-void
+static void
window_destroy(struct window *w)
{
log_debug("window @%u destroyed (%d references)", w->id, w->references);