From 26a55ddcf99b9631af28d8273dac2bafa968adff Mon Sep 17 00:00:00 2001 From: nicm Date: Fri, 23 Oct 2015 16:30:15 +0000 Subject: Remove some unnecessary checks before free(). --- tty.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'tty.c') 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 -- cgit