summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/popup.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2023-03-15 19:23:23 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2023-03-15 19:23:23 +0000
commitfdd24a15a583e9d78a9cc8cef4f5a8eaf0f66a68 (patch)
treea03abd8657d98a7cc0433689872e0ab7e5be90a5 /usr.bin/tmux/popup.c
parent4a36dde1aa0284a7ef1195f364f25dc4a927e27c (diff)
Do not leak screen in popups, GitHub issue 3492.
Diffstat (limited to 'usr.bin/tmux/popup.c')
-rw-r--r--usr.bin/tmux/popup.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/tmux/popup.c b/usr.bin/tmux/popup.c
index e69ae5e9d10..ad2e1c8cda8 100644
--- a/usr.bin/tmux/popup.c
+++ b/usr.bin/tmux/popup.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: popup.c,v 1.47 2023/01/20 21:36:00 nicm Exp $ */
+/* $OpenBSD: popup.c,v 1.48 2023/03/15 19:23:22 nicm Exp $ */
/*
* Copyright (c) 2020 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -253,6 +253,7 @@ popup_draw_cb(struct client *c, void *data, struct screen_redraw_ctx *rctx)
tty_draw_line(tty, &s, 0, i, pd->sx, px, py + i, &defaults,
palette);
}
+ screen_free(&s);
if (pd->md != NULL) {
c->overlay_check = NULL;
c->overlay_data = NULL;