HomeFreeBSD

Fix zdb "Memory fault" found on FreeBSD ZTS (#16332)

Description

Fix zdb "Memory fault" found on FreeBSD ZTS (#16332)

Reason: nvlist_free() tries to free sth. which isn't allocted
Solution: init this variable with NULL

Closes #16311
Signed-off-by: Tino Reichardt <milky-zfs@mcmilk.de>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Reviewed-by: Ameer Hamza <ahamza@ixsystems.com>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>

Details

Provenance
Tino Reichardt <milky-zfs@mcmilk.de>Authored on Jul 9 2024, 4:36 PM
GitHub <noreply@github.com>Committed on Jul 9 2024, 4:36 PM
Parents
rGf72e081fbf38: FreeBSD: Use a statement expression to implement SET_ERROR() (#16284)
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rG9ffe4413610e: Fix zdb "Memory fault" found on FreeBSD ZTS (#16332) (authored by Tino Reichardt <milky-zfs@mcmilk.de>).Jul 9 2024, 4:36 PM