HomeFreeBSD

zdb: Fix minor memory leak

Description

zdb: Fix minor memory leak

Commit 6b6aaf6dc2e65c63c74fbd7840c14627e9a91ce2 introduced a small
memory leak in zdb. This was detected by the LeakSanitizer and was
causing all ztest runs to fail.

Reviewed-by: Igor Kozhukhov <igor@dilos.org>
Reviewed-by: Rich Ercolani <rincebrain@gmail.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #14796

Details

Provenance
Brian Behlendorf <behlendorf1@llnl.gov>Authored on Apr 26 2023, 3:43 PM
GitHub <noreply@github.com>Committed on Apr 26 2023, 3:43 PM
Parents
rG0e8a42bbee2c: Revert "Fix data race between zil_commit() and zil_suspend()"
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rGd960beca61b3: zdb: Fix minor memory leak (authored by Brian Behlendorf <behlendorf1@llnl.gov>).Apr 26 2023, 3:43 PM