diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/mount_bsd.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/mount_bsd.c b/lib/mount_bsd.c index 94a11f7..cbd3ced 100644 --- a/lib/mount_bsd.c +++ b/lib/mount_bsd.c @@ -222,6 +222,7 @@ mount: if(ret == -1) { perror("fuse: failed to assemble mount arguments"); + close(fd); exit(1); } } @@ -232,14 +233,11 @@ mount: argv[a++] = opts; } argv[a++] = fdnam; - - if(ret != -1) - free(fdnam); - argv[a++] = mountpoint; argv[a++] = NULL; execvp(mountprog, (char **) argv); perror("fuse: failed to exec mount program"); + free(fdnam); exit(1); } |