diff options
author | Jorgen Lundman <[email protected]> | 2020-05-27 08:13:41 +0900 |
---|---|---|
committer | GitHub <[email protected]> | 2020-05-26 16:13:41 -0700 |
commit | 70a5fc053033c21098651c59a13ab0ac535579e9 (patch) | |
tree | cd0697237605f56a81e6915b601b2a77e7015ad4 /module/zfs | |
parent | d1b84da8c1a69c084f04b504beefe804591bca07 (diff) |
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 <[email protected]>
Signed-off-by: Jorgen Lundman <[email protected]>
Closes #10366
Diffstat (limited to 'module/zfs')
-rw-r--r-- | module/zfs/dsl_destroy.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/module/zfs/dsl_destroy.c b/module/zfs/dsl_destroy.c index 883928f0e..190dbdef5 100644 --- a/module/zfs/dsl_destroy.c +++ b/module/zfs/dsl_destroy.c @@ -661,6 +661,8 @@ dsl_destroy_snapshots_nvl(nvlist_t *snaps, boolean_t defer, if (errorstr != NULL) { zfs_dbgmsg(errorstr); } + fnvlist_free(wrapper); + fnvlist_free(result); return (error); } fnvlist_free(wrapper); |