zdb: Fix minor memory leak
commitd960beca61b3c5ede8eb595ceb091666e0d4a17c
authorBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 26 Apr 2023 15:43:39 +0000 (26 08:43 -0700)
committerGitHub <noreply@github.com>
Wed, 26 Apr 2023 15:43:39 +0000 (26 08:43 -0700)
tree425f777552d050ecaeca3e16339f59bf6f7dcbad
parent0e8a42bbee2c29f1a2c49fdbda403e839af4b38d
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
cmd/zdb/zdb.c