aboutsummaryrefslogtreecommitdiff
path: root/screen.c
diff options
context:
space:
mode:
authorTiago Cunha <tcunha@gmx.com>2009-07-30 21:14:04 +0000
committerTiago Cunha <tcunha@gmx.com>2009-07-30 21:14:04 +0000
commit09c64328549676f22a5a541e27a5ad89200e94ad (patch)
treee04a8d4eb79f630d02f88765f5c21a1f29a56189 /screen.c
parent796bfbd7afa40ef5bbc486c6a4bdb857e8204a29 (diff)
downloadrtmux-09c64328549676f22a5a541e27a5ad89200e94ad.tar.gz
rtmux-09c64328549676f22a5a541e27a5ad89200e94ad.tar.bz2
rtmux-09c64328549676f22a5a541e27a5ad89200e94ad.zip
Sync OpenBSD patchset 207:
Plug some memory leaks.
Diffstat (limited to 'screen.c')
-rw-r--r--screen.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/screen.c b/screen.c
index 092858f8..77e916cb 100644
--- a/screen.c
+++ b/screen.c
@@ -1,4 +1,4 @@
-/* $Id: screen.c,v 1.94 2009-07-18 11:06:35 nicm Exp $ */
+/* $Id: screen.c,v 1.95 2009-07-30 21:14:04 tcunha Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -62,6 +62,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);
}