diff options
author | Bernd Schubert <bernd.schubert@fastmail.fm> | 2024-05-05 13:09:56 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-05 13:09:56 +0200 |
commit | b701673e7429336248c307c93c2c26f443719255 (patch) | |
tree | e091c26cadee2b0ca2130b5fb296fc6709ea0017 /lib | |
parent | 26fa6c1f03f564673f47699eacae45e58fcc0b2d (diff) | |
download | libfuse-b701673e7429336248c307c93c2c26f443719255.tar.gz |
Fix missing fuse_loop_cfg_destroy() in fuse_session_loop_mt_31 (#944)
All credits to Miklos Szeredi <miklos@szeredi.hu> for spotting
this.
Signed-off-by: Bernd Schubert <bernd.schubert@fastmail.fm>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/fuse_loop_mt.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/fuse_loop_mt.c b/lib/fuse_loop_mt.c index 70ff8f8..ecf8af8 100644 --- a/lib/fuse_loop_mt.c +++ b/lib/fuse_loop_mt.c @@ -440,10 +440,15 @@ int fuse_session_loop_mt_31(struct fuse_session *se, int clone_fd); FUSE_SYMVER("fuse_session_loop_mt_31", "fuse_session_loop_mt@FUSE_3.0") int fuse_session_loop_mt_31(struct fuse_session *se, int clone_fd) { + int err; struct fuse_loop_config *config = fuse_loop_cfg_create(); if (clone_fd > 0) fuse_loop_cfg_set_clone_fd(config, clone_fd); - return fuse_session_loop_mt_312(se, config); + err = fuse_session_loop_mt_312(se, config); + + fuse_loop_cfg_destroy(config); + + return err; } struct fuse_loop_config *fuse_loop_cfg_create(void) |