Thread (8 messages) 8 messages, 3 authors, 2009-12-24
STALE6003d

[PATCH] Input: Force Feedback core memory leak

From: Jari Vanhala <hidden>
Date: 2009-12-04 13:05:15
Subsystem: input (keyboard, mouse, joystick, touchscreen) drivers, the rest · Maintainers: Dmitry Torokhov, Linus Torvalds

Effects is allocated, but not freed anywhere.

Signed-off-by: Jari Vanhala <redacted>
---
 drivers/input/ff-core.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/drivers/input/ff-core.c b/drivers/input/ff-core.c
index 3d7816c..d310a97 100644
--- a/drivers/input/ff-core.c
+++ b/drivers/input/ff-core.c
@@ -367,6 +367,7 @@ void input_ff_destroy(struct input_dev *dev)
 		if (dev->ff->destroy)
 			dev->ff->destroy(dev->ff);
 		kfree(dev->ff->private);
+		kfree(dev->ff->effects);
 		kfree(dev->ff);
 		dev->ff = NULL;
 	}
-- 
1.6.3.3
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help