Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F111377199
D38526.id117017.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
968 B
Referenced Files
None
Subscribers
None
D38526.id117017.diff
View Options
diff --git a/sys/fs/fuse/fuse_vnops.c b/sys/fs/fuse/fuse_vnops.c
--- a/sys/fs/fuse/fuse_vnops.c
+++ b/sys/fs/fuse/fuse_vnops.c
@@ -667,6 +667,7 @@
}
}
+ fdisp_destroy(&fdi);
return (err);
}
@@ -1103,6 +1104,7 @@
uint64_t nodeid = feo->nodeid;
uint64_t fh_id = foo->fh;
+ fdisp_destroy(fdip);
fdisp_init(fdip, sizeof(*fri));
fdisp_make(fdip, FUSE_RELEASE, mp, nodeid, td, cred);
fri = fdip->indata;
@@ -3021,6 +3023,7 @@
err = fdisp_wait_answ(&fdi);
if (err == ENOSYS) {
+ fdisp_destroy(&fdi);
fsess_set_notimpl(mp, FUSE_FALLOCATE);
goto fallback;
} else if (err == EOPNOTSUPP) {
@@ -3028,6 +3031,7 @@
* The file system server does not support FUSE_FALLOCATE with
* the supplied mode for this particular file.
*/
+ fdisp_destroy(&fdi);
goto fallback;
} else if (!err) {
/*
@@ -3047,6 +3051,7 @@
}
out:
+ fdisp_destroy(&fdi);
if (closefufh)
fuse_filehandle_close(vp, fufh, curthread, cred);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Mar 4, 12:50 AM (11 h, 24 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16957516
Default Alt Text
D38526.id117017.diff (968 B)
Attached To
Mode
D38526: fusefs: fix some resource leaks
Attached
Detach File
Event Timeline
Log In to Comment