summaryrefslogtreecommitdiffstats
path: root/screen.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2009-07-30 20:41:48 +0000
committerNicholas Marriott <nicm@openbsd.org>2009-07-30 20:41:48 +0000
commit97f105cde22c50ecf3cc1edd68df2664f3645bcc (patch)
tree4897ca1fb5e0a2ad05e037084e8ea04491eb5daf /screen.c
parent61f3fc7e4dc5bdf543940f8cc7334f5f64d4b9fb (diff)
Plug some memory leaks.
Diffstat (limited to 'screen.c')
-rw-r--r--screen.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/screen.c b/screen.c
index 650278b2..b2bcffa3 100644
--- a/screen.c
+++ b/screen.c
@@ -63,6 +63,8 @@ screen_reinit(struct screen *s)
void
screen_free(struct screen *s)
{
+ if (s->tabs != NULL)
+ xfree(s->tabs);
xfree(s->title);
grid_destroy(s->grid);
}