aboutsummaryrefslogtreecommitdiff
path: root/sys/fs
diff options
context:
space:
mode:
authorAlan Somers <asomers@FreeBSD.org>2024-12-23 20:26:11 +0000
committerAlan Somers <asomers@FreeBSD.org>2025-01-20 22:36:27 +0000
commite8a272048a0fc9f558c7788dd06b0159b56c4585 (patch)
treed9e11e08ff02befe54cb24b052e4ed9a54448dc6 /sys/fs
parent039609b04d63f2e597d70fec66915a766834e81c (diff)
fusefs: fix a memory leak
Fix a leak of a fuse_ticket structure. The leak mostly affected NFS-exported fuse file systems, and was triggered by a failure during FUSE_LOOKUP. Sponsored by: ConnectWise (cherry picked from commit 969d1aa4dbfcbccd8de965f7761203208bf04e46)
Diffstat (limited to 'sys/fs')
-rw-r--r--sys/fs/fuse/fuse_vfsops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/fs/fuse/fuse_vfsops.c b/sys/fs/fuse/fuse_vfsops.c
index 858fd768cb1d..156e7b288c85 100644
--- a/sys/fs/fuse/fuse_vfsops.c
+++ b/sys/fs/fuse/fuse_vfsops.c
@@ -566,7 +566,7 @@ fuse_vfsop_vget(struct mount *mp, ino_t ino, int flags, struct vnode **vpp)
error = fdisp_wait_answ(&fdi);
if (error)
- return error;
+ goto out;
feo = (struct fuse_entry_out *)fdi.answ;
if (feo->nodeid == 0) {