diff options
author | araujo <araujo@FreeBSD.org> | 2015-12-15 15:41:09 +0000 |
---|---|---|
committer | araujo <araujo@FreeBSD.org> | 2015-12-15 15:41:09 +0000 |
commit | 7e0d3844ca8f1f6eaaad7c08d37c89132debebb3 (patch) | |
tree | d4c0a06b8a3264098256db6f770675ef9c42b2e2 /usr.sbin/ypldap | |
parent | 99a0984f8bab31482ce2826097face2119a304e6 (diff) | |
download | FreeBSD-src-7e0d3844ca8f1f6eaaad7c08d37c89132debebb3.zip FreeBSD-src-7e0d3844ca8f1f6eaaad7c08d37c89132debebb3.tar.gz |
Remove wrong header and the NULL check before free().
Approved by: bapt (mentor)
Obtained from: OpenBSD
Differential Revision: https://reviews.freebsd.org/D4548
Diffstat (limited to 'usr.sbin/ypldap')
-rw-r--r-- | usr.sbin/ypldap/ber.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/usr.sbin/ypldap/ber.c b/usr.sbin/ypldap/ber.c index a2950dc..540df69 100644 --- a/usr.sbin/ypldap/ber.c +++ b/usr.sbin/ypldap/ber.c @@ -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 |