diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2023-03-15 19:23:23 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2023-03-15 19:23:23 +0000 |
commit | fdd24a15a583e9d78a9cc8cef4f5a8eaf0f66a68 (patch) | |
tree | a03abd8657d98a7cc0433689872e0ab7e5be90a5 /usr.bin/tmux/popup.c | |
parent | 4a36dde1aa0284a7ef1195f364f25dc4a927e27c (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.c | 3 |
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; |