commit | 6a47081c37b7dd7810ce19e156c1a3bf11987e9a | [log] [tgz] |
---|---|---|
author | Jari Vanhala <ext-jari.vanhala@nokia.com> | Fri Dec 04 10:24:21 2009 -0800 |
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | Fri Dec 04 22:16:38 2009 -0800 |
tree | 8bb327ec15bd02c8997314d22abcaadd5ec69882 | |
parent | a9b0d0e57de88030527a95edea2722851897b7dd [diff] |
Input: fix memory leak in force feedback core Effects were allocated, but not freed anywhere. Signed-off-by: Jari Vanhala <ext-jari.vanhala@nokia.com> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
diff --git a/drivers/input/ff-core.c b/drivers/input/ff-core.c index 572d0a7..b2f07aa 100644 --- a/drivers/input/ff-core.c +++ b/drivers/input/ff-core.c
@@ -369,6 +369,7 @@ if (ff->destroy) ff->destroy(ff); kfree(ff->private); + kfree(ff->effects); kfree(ff); dev->ff = NULL; }