mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-23 02:44:41 +03:00
fix memleak in spa_errlog.c
Reviewed-by: Alexander Motin <alexander.motin@TrueNAS.com> Reviewed-by: Alan Somers <asomers@freebsd.org> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Alek Pinchuk <apinchuk@axcient.com> Closes #18403
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user