From 6a47081c37b7dd7810ce19e156c1a3bf11987e9a Mon Sep 17 00:00:00 2001 From: Jari Vanhala Date: Fri, 4 Dec 2009 10:24:21 -0800 Subject: [PATCH] Input: fix memory leak in force feedback core Effects were allocated, but not freed anywhere. Signed-off-by: Jari Vanhala Signed-off-by: Dmitry Torokhov --- drivers/input/ff-core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/input/ff-core.c b/drivers/input/ff-core.c index 572d0a712d2..b2f07aa1604 100644 --- a/drivers/input/ff-core.c +++ b/drivers/input/ff-core.c @@ -369,6 +369,7 @@ void input_ff_destroy(struct input_dev *dev) if (ff->destroy) ff->destroy(ff); kfree(ff->private); + kfree(ff->effects); kfree(ff); dev->ff = NULL; } -- 2.39.5