diff options
Diffstat (limited to 'lib/helper.c')
-rw-r--r-- | lib/helper.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/helper.c b/lib/helper.c index e5550c9..cca21b5 100644 --- a/lib/helper.c +++ b/lib/helper.c @@ -243,8 +243,7 @@ void fuse_unmount(const char *mountpoint, struct fuse_chan *ch) if (mountpoint) { int fd = ch ? fuse_chan_clearfd(ch) : -1; fuse_kern_unmount(mountpoint, fd); - if (ch) - fuse_chan_destroy(ch); + fuse_chan_put(ch); } } |