svn commit: r292271 - head/usr.sbin/ypldap

Marcelo Araujo araujo at FreeBSD.org
Tue Dec 15 15:41:11 UTC 2015


Author: araujo
Date: Tue Dec 15 15:41:09 2015
New Revision: 292271
URL: https://svnweb.freebsd.org/changeset/base/292271

Log:
  Remove wrong header and the NULL check before free().
  
  Approved by:	bapt (mentor)
  Obtained from:	OpenBSD
  Differential Revision:	https://reviews.freebsd.org/D4548

Modified:
  head/usr.sbin/ypldap/ber.c

Modified: head/usr.sbin/ypldap/ber.c
==============================================================================
--- head/usr.sbin/ypldap/ber.c	Tue Dec 15 15:37:58 2015	(r292270)
+++ head/usr.sbin/ypldap/ber.c	Tue Dec 15 15:41:09 2015	(r292271)
@@ -27,7 +27,6 @@
 #include <err.h>	/* XXX for debug output */
 #include <stdio.h>	/* XXX for debug output */
 #include <string.h>
-#include <strings.h>
 #include <unistd.h>
 #include <stdarg.h>
 
@@ -1219,8 +1218,7 @@ ber_set_application(struct ber *b, unsig
 void
 ber_free(struct ber *b)
 {
-	if (b->br_wbuf != NULL)
-		free (b->br_wbuf);
+	free(b->br_wbuf);
 }
 
 static ssize_t


More information about the svn-src-head mailing list