Date: Wed, 1 May 2019 17:24:53 +0000 (UTC) From: Alan Somers <asomers@FreeBSD.org> To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r346997 - projects/fuse2/sys/fs/fuse Message-ID: <201905011724.x41HOrj6033504@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: asomers Date: Wed May 1 17:24:53 2019 New Revision: 346997 URL: https://svnweb.freebsd.org/changeset/base/346997 Log: fusefs: fix a memory leak from r346979 PR: 216391 Sponsored by: The FreeBSD Foundation Modified: projects/fuse2/sys/fs/fuse/fuse_vnops.c Modified: projects/fuse2/sys/fs/fuse/fuse_vnops.c ============================================================================== --- projects/fuse2/sys/fs/fuse/fuse_vnops.c Wed May 1 17:12:49 2019 (r346996) +++ projects/fuse2/sys/fs/fuse/fuse_vnops.c Wed May 1 17:24:53 2019 (r346997) @@ -1545,7 +1545,7 @@ fuse_vnop_setattr(struct vop_setattr_args *ap) /* Only root may change a file's owner */ err = priv_check_cred(cred, PRIV_VFS_CHOWN); if (err) - return err; + goto out; } fsai->uid = vap->va_uid; fsai->valid |= FATTR_UID; @@ -1561,7 +1561,7 @@ fuse_vnop_setattr(struct vop_setattr_args *ap) */ err = priv_check_cred(cred, PRIV_VFS_CHOWN); if (err) - return err; + goto out; } fsai->gid = vap->va_gid; fsai->valid |= FATTR_GID;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201905011724.x41HOrj6033504>