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