diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-09-26 01:58:56 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-09-26 01:58:56 +0000 |
commit | 94fbd117be7ffd9729a9307a67240e659cdb2260 (patch) | |
tree | c7d01181fee0851fc5c1eb68f51a648c83461d6f /libexec/comsat/comsat.c | |
parent | 2179efe7015e496ce223423bfd8932aa894478d0 (diff) |
free(NULL) allowed
Diffstat (limited to 'libexec/comsat/comsat.c')
-rw-r--r-- | libexec/comsat/comsat.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/libexec/comsat/comsat.c b/libexec/comsat/comsat.c index a935a6b031a..e253918ab00 100644 --- a/libexec/comsat/comsat.c +++ b/libexec/comsat/comsat.c @@ -1,4 +1,4 @@ -/* $OpenBSD: comsat.c,v 1.30 2003/09/25 21:44:03 millert Exp $ */ +/* $OpenBSD: comsat.c,v 1.31 2003/09/26 01:58:55 deraadt Exp $ */ /* * Copyright (c) 1980, 1993 @@ -37,7 +37,7 @@ static char copyright[] = #ifndef lint /*static char sccsid[] = "from: @(#)comsat.c 8.1 (Berkeley) 6/4/93";*/ -static char rcsid[] = "$OpenBSD: comsat.c,v 1.30 2003/09/25 21:44:03 millert Exp $"; +static char rcsid[] = "$OpenBSD: comsat.c,v 1.31 2003/09/26 01:58:55 deraadt Exp $"; #endif /* not lint */ #include <sys/limits.h> @@ -191,8 +191,7 @@ doreadutmp(void) struct utmp *u; if ((u = realloc(utmp, nutmpsize)) == NULL) { - if (utmp) - free(utmp); + free(utmp); syslog(LOG_ERR, "%s", strerror(errno)); exit(1); } |