HomeFreeBSD

FreeBSD: Fix memory leaks in kstats

Description

FreeBSD: Fix memory leaks in kstats

Don't handle (incorrectly) kmem_zalloc() failure. With KM_SLEEP,
will never return NULL.

Free the data allocated for non-virtual kstats when deleting the object.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Signed-off-by: Ryan Moeller <ryan@iXsystems.com>
Closes #11767

Details

Provenance
freqlabsAuthored on Mar 18 2021, 4:55 AM
GitHub <noreply@github.com>Committed on Mar 18 2021, 4:55 AM
Parents
rG1daad98176d1: Linux: always check or verify return of igrab()
Branches
Unknown
Tags
Unknown