mirror of
https://github.com/freebsd/freebsd-src.git
synced 2026-10-28 19:34:43 +01:00
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:
1 parent
3599964dd2
commit
5cb95ad89a
1 file changed
+1
-1
@@ -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