mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2025-01-13 03:30:34 +03:00
Fix typo in check_clones()
Run kmem_free() after zap_cursor_fini(). Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de> Reviewed-by: Adam Moss <c@yotes.com> Signed-off-by: George Amanakis <gamanakis@gmail.com> Closes #14702
This commit is contained in:
parent
8ab674ab9c
commit
a8a127e2c9
@ -470,9 +470,9 @@ static int check_clones(spa_t *spa, uint64_t zap_clone, uint64_t snap_count,
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
zap_cursor_fini(zc);
|
||||||
kmem_free(za, sizeof (*za));
|
kmem_free(za, sizeof (*za));
|
||||||
kmem_free(zc, sizeof (*zc));
|
kmem_free(zc, sizeof (*zc));
|
||||||
zap_cursor_fini(zc);
|
|
||||||
|
|
||||||
return (error);
|
return (error);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user