Fix memory leak in ztest
commitbc4d210783686a0b6728546576e4465912f99afc
authorRichard Yao <richard.yao@alumni.stonybrook.edu>
Mon, 6 Mar 2023 23:30:29 +0000 (6 18:30 -0500)
committerGitHub <noreply@github.com>
Mon, 6 Mar 2023 23:30:29 +0000 (6 15:30 -0800)
treea72a1b5f6e37b7ae6028e731b331fdca09c0114a
parentb79e7114bb95862ebe6d98f0ac9692cae7798d17
Fix memory leak in ztest

This is tripping LeakSanitizer, which causes zloop test failures on pull
requests.

Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Richard Yao <richard.yao@alumni.stonybrook.edu>
Closes #14583
cmd/ztest.c