Remove wrong header and the NULL check before free().

Approved by:	bapt (mentor)
Obtained from:	OpenBSD
Differential Revision:	https://reviews.freebsd.org/D4548
This commit is contained in:
Marcelo Araujo 2015-12-15 15:41:09 +00:00
parent 7433efffe3
commit 474fa6a744
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=292271

View File

@ -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, unsigned long (*cb)(struct ber_element *))
void
ber_free(struct ber *b)
{
if (b->br_wbuf != NULL)
free (b->br_wbuf);
free(b->br_wbuf);
}
static ssize_t