mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-25 18:59:33 +03:00
Add ida_destroy in zvol_fini to fix memleak
User of ida needs to call ida_destroy after using it. Otherwise ida->free_bitmap and/or other stuff may leak. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Chunwei Chen <david.chen@osnexus.com> Closes #5484
This commit is contained in:
parent
db2c364ffd
commit
f2d8bdc62e
@ -2085,6 +2085,8 @@ zvol_fini(void)
|
||||
|
||||
list_destroy(&zvol_state_list);
|
||||
mutex_destroy(&zvol_state_lock);
|
||||
|
||||
ida_destroy(&zvol_ida);
|
||||
}
|
||||
|
||||
/* BEGIN CSTYLED */
|
||||
|
Loading…
Reference in New Issue
Block a user