diff options
Diffstat (limited to 'lib/helper.c')
-rw-r--r-- | lib/helper.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/helper.c b/lib/helper.c index 1f99c2f..bb02a3a 100644 --- a/lib/helper.c +++ b/lib/helper.c @@ -226,7 +226,10 @@ static int fuse_parse_cmdline(int argc, const char *argv[], return -1; } sprintf(fsname_opt, "fsname=%s", basename); - fuse_opt_add_opt(&hopts->kernel_opts, fsname_opt); + res = fuse_opt_add_opt(&hopts->kernel_opts, fsname_opt); + free(fsname_opt); + if (res == -1) + return -1; } return 0; } |