Remove some unnecessary checks before free().

This commit is contained in:
nicm
2015-10-23 16:30:15 +00:00
parent 1a4ddfa8a7
commit 26a55ddcf9
4 changed files with 5 additions and 7 deletions

6
tty.c
View File

@ -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