summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2020-10-30 11:33:41 +0000
committernicm <nicm@openbsd.org>2020-10-30 11:33:41 +0000
commitd431089bf324b70eb8c80046f3dec9c02c92f969 (patch)
tree36756998dbedcc3aa4ea485ead51ba7927cbb4a8
parentUse metrics instead of statistics. Also point people where in the tree (diff)
downloadwireguard-openbsd-d431089bf324b70eb8c80046f3dec9c02c92f969.tar.xz
wireguard-openbsd-d431089bf324b70eb8c80046f3dec9c02c92f969.zip
Do not leak path when freeing screen, from Sergey Nizovtsev.
-rw-r--r--usr.bin/tmux/screen.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/tmux/screen.c b/usr.bin/tmux/screen.c
index 48bf924b69c..6189e9cd1ae 100644
--- a/usr.bin/tmux/screen.c
+++ b/usr.bin/tmux/screen.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: screen.c,v 1.67 2020/05/16 15:49:20 nicm Exp $ */
+/* $OpenBSD: screen.c,v 1.68 2020/10/30 11:33:41 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -79,6 +79,7 @@ screen_init(struct screen *s, u_int sx, u_int sy, u_int hlimit)
s->title = xstrdup("");
s->titles = NULL;
+ s->path = NULL;
s->cstyle = 0;
s->ccolour = xstrdup("");
@@ -121,6 +122,7 @@ screen_free(struct screen *s)
{
free(s->sel);
free(s->tabs);
+ free(s->path);
free(s->title);
free(s->ccolour);