提交 6a47081c 编写于 作者: J Jari Vanhala 提交者: Dmitry Torokhov

Input: fix memory leak in force feedback core

Effects were allocated, but not freed anywhere.
Signed-off-by: NJari Vanhala <ext-jari.vanhala@nokia.com>
Signed-off-by: NDmitry Torokhov <dtor@mail.ru>
上级 a9b0d0e5
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册