Fix snap_obj_array memory leak in check_filesystem()
commitda51bd17e5c3af7679d4dbe89a27057e7fc92fe0
authorChunwei Chen <tuxoko@gmail.com>
Tue, 14 Nov 2023 20:59:02 +0000 (14 12:59 -0800)
committerGitHub <noreply@github.com>
Tue, 14 Nov 2023 20:59:02 +0000 (14 12:59 -0800)
tree30e74b0a39b7fd4cc634ab0dc2aba3bae59450b2
parent231965680200b4a20214bb303d3f29c5f53bff67
Fix snap_obj_array memory leak in check_filesystem()

Use goto out instead of return for early exit to make sure
snap_obj_array is freed.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Chunwei Chen <david.chen@nutanix.com>
Closes #15516
module/zfs/spa_errlog.c