We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ba2e263 + 4db2ab5 commit d70d692Copy full SHA for d70d692
tools/lkl/lklfuse.c
@@ -605,6 +605,8 @@ int main(int argc, char **argv)
605
goto out_fuse_unmount;
606
}
607
608
+ fuse_opt_free_args(&args);
609
+
610
if (fuse_daemonize(fg) ||
611
fuse_set_signal_handlers(fuse_get_session(fuse))) {
612
ret = -1;
@@ -627,11 +629,13 @@ int main(int argc, char **argv)
627
629
out_remove_signals:
628
630
fuse_remove_signal_handlers(fuse_get_session(fuse));
631
-out_fuse_destroy:
- fuse_destroy(fuse);
632
-
633
out_fuse_unmount:
634
- fuse_unmount(mnt, ch);
+ if (ch)
+ fuse_unmount(mnt, ch);
635
636
+out_fuse_destroy:
637
+ if (fuse)
638
+ fuse_destroy(fuse);
639
640
out_close_disk:
641
close(lklfuse.disk.fd);
0 commit comments