mirror of
https://github.com/tmux/tmux.git
synced 2025-03-26 07:48:47 +00:00
Do not leak path when freeing screen, from Sergey Nizovtsev.
This commit is contained in:
parent
910457f68d
commit
02197f20d0
2
screen.c
2
screen.c
@ -79,6 +79,7 @@ screen_init(struct screen *s, u_int sx, u_int sy, u_int hlimit)
|
|||||||
|
|
||||||
s->title = xstrdup("");
|
s->title = xstrdup("");
|
||||||
s->titles = NULL;
|
s->titles = NULL;
|
||||||
|
s->path = NULL;
|
||||||
|
|
||||||
s->cstyle = 0;
|
s->cstyle = 0;
|
||||||
s->ccolour = xstrdup("");
|
s->ccolour = xstrdup("");
|
||||||
@ -121,6 +122,7 @@ screen_free(struct screen *s)
|
|||||||
{
|
{
|
||||||
free(s->sel);
|
free(s->sel);
|
||||||
free(s->tabs);
|
free(s->tabs);
|
||||||
|
free(s->path);
|
||||||
free(s->title);
|
free(s->title);
|
||||||
free(s->ccolour);
|
free(s->ccolour);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user