Skip to content

Commit

Permalink
Fix missing fuse_loop_cfg_destroy() in fuse_session_loop_mt_31
Browse files Browse the repository at this point in the history
All credits to Miklos Szeredi <miklos@szeredi.hu> for spotting
this.

Signed-off-by: Bernd Schubert <bernd.schubert@fastmail.fm>
  • Loading branch information
Bernd Schubert authored and bsbernd committed May 3, 2024
1 parent 8a9e2dc commit ebdac0a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/fuse_loop_mt.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ebdac0a

Please sign in to comment.