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
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to