Date: Fri, 18 Mar 2016 13:32:37 +0000 (UTC) From: Alexander Motin <mav@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org Subject: svn commit: r297022 - stable/9/sys/cddl/compat/opensolaris/kern Message-ID: <201603181332.u2IDWbsO050041@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: mav Date: Fri Mar 18 13:32:37 2016 New Revision: 297022 URL: https://svnweb.freebsd.org/changeset/base/297022 Log: MFC r296919: Fix small memory leak on attempt to access deleted snapshot. Modified: stable/9/sys/cddl/compat/opensolaris/kern/opensolaris_vfs.c Directory Properties: stable/9/ (props changed) stable/9/sys/ (props changed) Modified: stable/9/sys/cddl/compat/opensolaris/kern/opensolaris_vfs.c ============================================================================== --- stable/9/sys/cddl/compat/opensolaris/kern/opensolaris_vfs.c Fri Mar 18 13:32:00 2016 (r297021) +++ stable/9/sys/cddl/compat/opensolaris/kern/opensolaris_vfs.c Fri Mar 18 13:32:37 2016 (r297022) @@ -196,6 +196,7 @@ mount_snapshot(kthread_t *td, vnode_t ** VI_UNLOCK(vp); vrele(vp); vfs_unbusy(mp); + vfs_freeopts(mp->mnt_optnew); vfs_mount_destroy(mp); *vpp = NULL; return (error);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201603181332.u2IDWbsO050041>