HomeFreeBSD

Fix snap_obj_array memory leak in check_filesystem()

Description

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

Details

Provenance
Chunwei Chen <tuxoko@gmail.com>Authored on Nov 14 2023, 8:59 PM
GitHub <noreply@github.com>Committed on Nov 14 2023, 8:59 PM
Parents
rG231965680200: Linux 6.6 compat: META
Branches
Unknown
Tags
Unknown