From c1afff113ceec2c78b96b2e52379cb5a9275d5fb Mon Sep 17 00:00:00 2001 From: Alan Somers Date: Thu, 27 Jun 2019 22:24:56 +0000 Subject: fusefs: fix a memory leak regarding FUSE_INTERRUPT We were leaking the fuse ticket if the original operation completed before the daemon received the INTERRUPT operation. Fixing this was easier than I expected. Sponsored by: The FreeBSD Foundation --- sys/fs/fuse/fuse_device.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/fs/fuse/fuse_device.c b/sys/fs/fuse/fuse_device.c index 6a66df80e89b..02a13074b3da 100644 --- a/sys/fs/fuse/fuse_device.c +++ b/sys/fs/fuse/fuse_device.c @@ -473,6 +473,7 @@ fuse_device_write(struct cdev *dev, struct uio *uio, int ioflag) x_tick) { if (itick->tk_unique == tick->irq_unique) { fuse_aw_remove(itick); + fuse_ticket_drop(itick); break; } } -- cgit v1.2.3