Fix missing fuse_loop_cfg_destroy() in fuse_session_loop_mt_31 (#944)
authorBernd Schubert <bernd.schubert@fastmail.fm>
Sun, 5 May 2024 11:09:56 +0000 (13:09 +0200)
committerGitHub <noreply@github.com>
Sun, 5 May 2024 11:09:56 +0000 (13:09 +0200)
All credits to Miklos Szeredi <miklos@szeredi.hu> for spotting
this.

Signed-off-by: Bernd Schubert <bernd.schubert@fastmail.fm>
lib/fuse_loop_mt.c

index 70ff8f8a5b3b191c278c6540ce406c767753a103..ecf8af81bca4cf0f58b7d909514c1232e53897bf 100644 (file)
@@ -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)