mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-27 11:29:36 +03:00
Memory leak in dsl_destroy_snapshots_nvl error case
The dsl_destroy_snapshots_nvl() function has an early error out, and temporary nvlists were not freed. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Jorgen Lundman <lundman@lundman.net> Closes #10366
This commit is contained in:
parent
d1b84da8c1
commit
70a5fc0530
@ -661,6 +661,8 @@ dsl_destroy_snapshots_nvl(nvlist_t *snaps, boolean_t defer,
|
|||||||
if (errorstr != NULL) {
|
if (errorstr != NULL) {
|
||||||
zfs_dbgmsg(errorstr);
|
zfs_dbgmsg(errorstr);
|
||||||
}
|
}
|
||||||
|
fnvlist_free(wrapper);
|
||||||
|
fnvlist_free(result);
|
||||||
return (error);
|
return (error);
|
||||||
}
|
}
|
||||||
fnvlist_free(wrapper);
|
fnvlist_free(wrapper);
|
||||||
|
Loading…
Reference in New Issue
Block a user