While the request lives don't free the channel associated with the request,
the answer will need to be written on the channel.
req->u.ni.data = NULL;
list_del_req(req);
ctr = --req->ctr;
+ fuse_chan_put(req->ch);
+ req->ch = NULL;
pthread_mutex_unlock(&f->lock);
if (!ctr)
destroy_req(req);
req->ctx.uid = in->uid;
req->ctx.gid = in->gid;
req->ctx.pid = in->pid;
- req->ch = ch;
+ req->ch = fuse_chan_get(ch);
err = EIO;
if (!f->got_init) {