Fix memory leak caused by a missing fuse_request_free() in fuse_reply_data().
returned for unlinked but still open files if the kernel sent a
FORGET request for the parent directory.
+ * Free request in fuse_reply_data().
+
2011-12-08 Miklos Szeredi <miklos@szeredi.hu>
* Fix build if FUSE_NODE_SLAB is not defined. Patch by Emmanuel
out.error = 0;
res = fuse_send_data_iov(req->f, req->ch, iov, 1, bufv, flags);
- if (res <= 0)
+ if (res <= 0) {
+ fuse_free_req(req);
return res;
- else
+ } else {
return fuse_reply_err(req, res);
+ }
}
int fuse_reply_statfs(fuse_req_t req, const struct statvfs *stbuf)