From 4735ccca4462d5820ad08d28cb8cfd5151eb9d9f Mon Sep 17 00:00:00 2001 From: mmcc Date: Sat, 12 Dec 2015 20:04:24 +0000 Subject: Remove NULL-checks before free(). --- usr.sbin/ypbind/ypbind.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'usr.sbin/ypbind') diff --git a/usr.sbin/ypbind/ypbind.c b/usr.sbin/ypbind/ypbind.c index 5ab2140774a..e4b78df3d00 100644 --- a/usr.sbin/ypbind/ypbind.c +++ b/usr.sbin/ypbind/ypbind.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ypbind.c,v 1.64 2015/08/20 22:39:30 deraadt Exp $ */ +/* $OpenBSD: ypbind.c,v 1.65 2015/12/12 20:04:23 mmcc Exp $ */ /* * Copyright (c) 1992, 1993, 1996, 1997, 1998 Theo de Raadt @@ -536,8 +536,7 @@ main(int argc, char *argv[]) extern void *__svc_fdset; if (fdsrp == NULL || fdsrl != __svc_fdsetsize) { - if (fdsrp) - free(fdsrp); + free(fdsrp); fdsrl = __svc_fdsetsize; width = __svc_fdsetsize; -- cgit v1.2.3