aboutsummaryrefslogtreecommitdiff
path: root/lib/fuse_lowlevel.c
diff options
context:
space:
mode:
authorGravatar Nikolaus Rath <Nikolaus@rath.org>2016-10-04 20:43:08 -0700
committerGravatar Nikolaus Rath <Nikolaus@rath.org>2016-10-04 20:48:02 -0700
commita5374df98e6683d4d536637d0fa4236c8b7c6bf1 (patch)
tree652f1987456fe2f7089c006c0f0218a2e7f7cf23 /lib/fuse_lowlevel.c
parentac7121d51432740a659104adf32f36e0039b5cf3 (diff)
Merge fuse_ll into fuse_session (part 4)
Merge fuse_ll_destroy() and fuse_session_destroy().
Diffstat (limited to 'lib/fuse_lowlevel.c')
-rw-r--r--lib/fuse_lowlevel.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/lib/fuse_lowlevel.c b/lib/fuse_lowlevel.c
index a5dbe17..09ee8da 100644
--- a/lib/fuse_lowlevel.c
+++ b/lib/fuse_lowlevel.c
@@ -2657,7 +2657,7 @@ static int fuse_ll_opt_proc(void *data, const char *arg, int key,
return 1;
}
-static void fuse_ll_destroy(struct fuse_session *f)
+static void fuse_session_destroy(struct fuse_session *f)
{
struct fuse_ll_pipe *llp;
@@ -2671,17 +2671,11 @@ static void fuse_ll_destroy(struct fuse_session *f)
pthread_key_delete(f->pipe_key);
pthread_mutex_destroy(&f->lock);
free(f->cuse_data);
+ close(f->fd);
+ destroy_mount_opts(f->mo);
free(f);
}
-void fuse_session_destroy(struct fuse_session *se)
-{
- fuse_ll_destroy(se);
- close(se->fd);
- destroy_mount_opts(se->mo);
- free(se);
-}
-
static void fuse_ll_pipe_destructor(void *data)
{