summaryrefslogtreecommitdiff
path: root/usr.sbin/ypbind
diff options
context:
space:
mode:
authormmcc <mmcc@cvs.openbsd.org>2015-12-12 20:04:24 +0000
committermmcc <mmcc@cvs.openbsd.org>2015-12-12 20:04:24 +0000
commit4735ccca4462d5820ad08d28cb8cfd5151eb9d9f (patch)
treece0b744455b18d2ed0d71f6328fc63a57aff22f0 /usr.sbin/ypbind
parent921ca576c5940a00b46b54ae0bc24d8d1fae52d7 (diff)
Remove NULL-checks before free().
Diffstat (limited to 'usr.sbin/ypbind')
-rw-r--r--usr.sbin/ypbind/ypbind.c5
1 files changed, 2 insertions, 3 deletions
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 <deraadt@openbsd.org>
@@ -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;