fuse_fs.m is no longer used. Modules are now managed by fuse_modules.
fix: free dangling pointer of module #683
struct fuse_fs {
struct fuse_operations op;
- struct fuse_module *m;
void *user_data;
int debug;
};
fuse_get_context()->private_data = fs->user_data;
if (fs->op.destroy)
fs->op.destroy(fs->user_data);
- if (fs->m)
- fuse_put_module(fs->m);
free(fs);
}
fuse_put_module(m);
return -1;
}
- newfs->m = m;
f->fs = newfs;
return 0;
}
out_free_session:
fuse_session_destroy(f->se);
out_free_fs:
- if (f->fs->m)
- fuse_put_module(f->fs->m);
free(f->fs);
free(f->conf.modules);
out_delete_context_key: