aboutsummaryrefslogtreecommitdiff
path: root/tty.c
diff options
context:
space:
mode:
Diffstat (limited to 'tty.c')
-rw-r--r--tty.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/tty.c b/tty.c
index 5d23ee82..3d6f29ca 100644
--- a/tty.c
+++ b/tty.c
@@ -338,10 +338,8 @@ tty_free(struct tty *tty)
tty_close(tty);
free(tty->ccolour);
- if (tty->path != NULL)
- free(tty->path);
- if (tty->termname != NULL)
- free(tty->termname);
+ free(tty->path);
+ free(tty->termname);
}
void