svn commit: r346997 - projects/fuse2/sys/fs/fuse
Alan Somers
asomers at FreeBSD.org
Wed May 1 17:24:54 UTC 2019
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;
More information about the svn-src-projects
mailing list