summaryrefslogtreecommitdiffstats
path: root/usr.sbin/hostapd
diff options
context:
space:
mode:
authormmcc <mmcc@openbsd.org>2015-12-22 19:45:09 +0000
committermmcc <mmcc@openbsd.org>2015-12-22 19:45:09 +0000
commit5ca30fe4318c98efa086fcf20239ca137ea0e7a2 (patch)
tree21370ace161777aceb367670a33e6f7bd25b92d0 /usr.sbin/hostapd
parentremove a NULL-check before free() (diff)
downloadwireguard-openbsd-5ca30fe4318c98efa086fcf20239ca137ea0e7a2.tar.xz
wireguard-openbsd-5ca30fe4318c98efa086fcf20239ca137ea0e7a2.zip
remove a NULL-check before free()
Diffstat (limited to 'usr.sbin/hostapd')
-rw-r--r--usr.sbin/hostapd/hostapd.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.sbin/hostapd/hostapd.c b/usr.sbin/hostapd/hostapd.c
index 0e43c64dffd..942ecfbd8a2 100644
--- a/usr.sbin/hostapd/hostapd.c
+++ b/usr.sbin/hostapd/hostapd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: hostapd.c,v 1.35 2015/01/16 06:40:17 deraadt Exp $ */
+/* $OpenBSD: hostapd.c,v 1.36 2015/12/22 19:45:09 mmcc Exp $ */
/*
* Copyright (c) 2004, 2005 Reyk Floeter <reyk@openbsd.org>
@@ -91,8 +91,7 @@ hostapd_log(u_int level, const char *fmt, ...)
vsyslog(LOG_INFO, fmt, ap);
va_end(ap);
- if (nfmt != NULL)
- free(nfmt);
+ free(nfmt);
}
void