]> git.proxmox.com Git - mirror_zfs.git/commit
Fix memory leaks in zfsvfs_create_impl()
authorTom Caputi <tcaputi@datto.com>
Fri, 15 Mar 2019 01:14:36 +0000 (21:14 -0400)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 15 Mar 2019 01:14:36 +0000 (18:14 -0700)
commit04a3b0796c622201e2cde6b7288043f90da1ba33
tree7ce9e6c7477f0e25bf149fbc440206dcae267971
parentc742bf1e68be582fb2db029e38768f8450d2609d
Fix memory leaks in zfsvfs_create_impl()

This patch simply fixes some small memory leaks that can happen
during error handling in zfsvfs_create_impl(). If the function
fails, it frees all the memory / references it created.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Signed-off-by: Tom Caputi <tcaputi@datto.com>
Closes #8490
module/zfs/zfs_vfsops.c