aboutsummaryrefslogtreecommitdiffstats
path: root/lib/helper.c
diff options
context:
space:
mode:
authorMiklos Szeredi <miklos@szeredi.hu>2005-12-10 20:47:46 +0000
committerMiklos Szeredi <miklos@szeredi.hu>2005-12-10 20:47:46 +0000
commit8720e933f44323fd886261f69ae767b41b388c17 (patch)
tree8000d30a3cedfb1e4abd2ac016d1e36647fc25f3 /lib/helper.c
parentaf562032901445a7328b319ea7e4ae787c05d862 (diff)
downloadlibfuse-8720e933f44323fd886261f69ae767b41b388c17.tar.gz
fix
Diffstat (limited to 'lib/helper.c')
-rw-r--r--lib/helper.c5
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;
}