]> git.proxmox.com Git - mirror_zfs.git/commit
Fix zfs_unmount() and zfs_unshare_proto() leaks
authorcao <cao.xuewen@zte.com.cn>
Wed, 31 Aug 2016 10:35:52 +0000 (18:35 +0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 1 Sep 2016 18:39:45 +0000 (11:39 -0700)
commit2d96d7aa56ea4a95206478474b2244be67a71853
treeedcf007959e878bbfdff5fbacb95c8f260036af4
parentee36c709c3d5f7040e1bd11f5c75318aa03e789f
Fix zfs_unmount() and zfs_unshare_proto() leaks

Always free mnpt memory on failure in the zfs_unmount() function.

In the zfs_unshare_proto() function mountpoint is a const and
should not be assigned.

Signed-off-by: cao.xuewen <cao.xuewen@zte.com.cn>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #5054
lib/libzfs/libzfs_mount.c