Date: Tue, 15 Dec 2015 15:41:09 +0000 (UTC) From: Marcelo Araujo <araujo@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r292271 - head/usr.sbin/ypldap Message-ID: <201512151541.tBFFf9Rh080937@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201512151541.tBFFf9Rh080937>