fix memleak in spa_errlog.c

Reviewed-by: Alexander Motin <[email protected]>
Reviewed-by: Alan Somers <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Alek Pinchuk <[email protected]>
Closes #18403
This commit is contained in:
Alek P authored and GitHub committed 2026-04-06 15:59:30 -07:00
1 parent 3599964dd2
commit 5cb95ad89a
1 file changed
+1 -1
+1 -1
View File
@@ -468,7 +468,7 @@ check_filesystem(spa_t *spa, uint64_t head_ds, zbookmark_err_phys_t *zep,
kmem_free(zc, sizeof (*zc));
out:
kmem_free(snap_obj_array, sizeof (*snap_obj_array));
kmem_free(snap_obj_array, snap_count * sizeof (*snap_obj_array));
return (error);
}