HomeFreeBSD

Use zfree() instead of explicit_bzero() and free().

Description

Use zfree() instead of explicit_bzero() and free().

In addition to reducing lines of code, this also ensures that the full
allocation is always zeroed avoiding possible bugs with incorrect
lengths passed to explicit_bzero().

Suggested by: cem
Reviewed by: cem, delphij
Approved by: csprng (cem)
Sponsored by: Chelsio Communications
Differential Revision: https://reviews.freebsd.org/D25435

Details

Committed
jhbJun 25 2020, 8:17 PM
Reviewer
cem
Differential Revision
D25435: Use zfree() instead of explicit_bzero() and free().
Parents
rS362623: Fix copy/paste mistake in kvm_getswapinfo(3)
Branches
Unknown
Tags
Unknown