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

pull/2448/head
nicm 2020-10-30 11:33:41 +00:00
parent 910457f68d
commit 02197f20d0
1 changed files with 2 additions and 0 deletions

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