mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-26 03:09:34 +03:00
Properly initialize and free destroydata
This regression was accidentally introduced by commit
330d06f90d
due to ZoL
specific code. The fix is to simply ensure the passed
nvlist is initialized and freed.
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #876
This commit is contained in:
parent
4276c6f576
commit
cf997d797b
@ -3875,7 +3875,9 @@ zfs_rename(zfs_handle_t *zhp, const char *target, boolean_t recursive)
|
||||
dd.snapname = delim + 1;
|
||||
|
||||
/* We remove any zvol links prior to renaming them */
|
||||
verify(nvlist_alloc(&dd.nvl, NV_UNIQUE_NAME, 0) == 0);
|
||||
ret = zfs_iter_filesystems(zhrp, zfs_check_snap_cb, &dd);
|
||||
nvlist_free(dd.nvl);
|
||||
if (ret) {
|
||||
goto error;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user