This fixes a segmentation fault if command-line option parsing fails during
initialization.
Reported by Eric Wong
* libfuse: add poll_events to fuse_file_info. Patch by Enke Chen
+ * libfuse: fix fs cleanup. Reported by Eric Wong
+
2013-02-06 Miklos Szeredi <miklos@szeredi.hu>
* libfuse: set close-on-exec flag on pipe file descriptors. Patch
out_free_session:
fuse_session_destroy(f->se);
out_free_fs:
- /* Horrible compatibility hack to stop the destructor from being
- called on the filesystem without init being called first */
- fs->op.destroy = NULL;
- fuse_fs_destroy(f->fs);
+ if (f->fs->m)
+ fuse_put_module(f->fs->m);
+ free(f->fs);
free(f->conf.modules);
out_free:
free(f);