Skip to content

Commit

Permalink
Input: fix memory leak in force feedback core
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jari Vanhala authored and Dmitry Torokhov committed Dec 5, 2009
1 parent a9b0d0e commit 6a47081
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/input/ff-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 6a47081

Please sign in to comment.