diff options
author | Miklos Szeredi <miklos@szeredi.hu> | 2005-12-10 20:47:46 +0000 |
---|---|---|
committer | Miklos Szeredi <miklos@szeredi.hu> | 2005-12-10 20:47:46 +0000 |
commit | 8720e933f44323fd886261f69ae767b41b388c17 (patch) | |
tree | 8000d30a3cedfb1e4abd2ac016d1e36647fc25f3 /lib/helper.c | |
parent | af562032901445a7328b319ea7e4ae787c05d862 (diff) | |
download | libfuse-8720e933f44323fd886261f69ae767b41b388c17.tar.gz |
fix
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; } |