aboutsummaryrefslogtreecommitdiff
path: root/sshfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'sshfs.c')
-rw-r--r--sshfs.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sshfs.c b/sshfs.c
index cc29799..2455fff 100644
--- a/sshfs.c
+++ b/sshfs.c
@@ -3310,8 +3310,10 @@ int main(int argc, char *argv[])
exit(1);
res = ssh_connect();
- if (res == -1)
+ if (res == -1) {
+ fuse_teardown(fuse, mountpoint);
exit(1);
+ }
if (multithreaded)
res = fuse_loop_mt(fuse);