Commit 6a47081c authored by Jari Vanhala's avatar Jari Vanhala Committed by Dmitry Torokhov

Input: fix memory leak in force feedback core

Effects were allocated, but not freed anywhere.
Signed-off-by: default avatarJari Vanhala <ext-jari.vanhala@nokia.com>
Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
parent a9b0d0e5
...@@ -369,6 +369,7 @@ void input_ff_destroy(struct input_dev *dev) ...@@ -369,6 +369,7 @@ void input_ff_destroy(struct input_dev *dev)
if (ff->destroy) if (ff->destroy)
ff->destroy(ff); ff->destroy(ff);
kfree(ff->private); kfree(ff->private);
kfree(ff->effects);
kfree(ff); kfree(ff);
dev->ff = NULL; dev->ff = NULL;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment