1
0
mirror of https://github.com/tmux/tmux.git synced 2025-03-23 22:28:47 +00:00

Do not leak path when freeing screen, from Sergey Nizovtsev.

This commit is contained in:
nicm 2020-10-30 11:33:41 +00:00
parent 910457f68d
commit 02197f20d0

View File

@ -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);