From: Jari Vanhala Date: Fri, 4 Dec 2009 18:24:21 +0000 (-0800) Subject: Input: fix memory leak in force feedback core X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=6a47081c37b7dd7810ce19e156c1a3bf11987e9a;p=mv-sheeva.git 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 --- 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; }