diff mbox

Input: Force Feedback core memory leak

Message ID 1259931914-6228-2-git-send-email-ext-jari.vanhala@nokia.com (mailing list archive)
State New, archived
Headers show

Commit Message

Jari Vanhala Dec. 4, 2009, 1:05 p.m. UTC
None
diff mbox

Patch

diff --git a/drivers/input/ff-core.c b/drivers/input/ff-core.c
index 3d7816c..d310a97 100644
--- a/drivers/input/ff-core.c
+++ b/drivers/input/ff-core.c
@@ -367,6 +367,7 @@  void input_ff_destroy(struct input_dev *dev)
 		if (dev->ff->destroy)
 			dev->ff->destroy(dev->ff);
 		kfree(dev->ff->private);
+		kfree(dev->ff->effects);
 		kfree(dev->ff);
 		dev->ff = NULL;
 	}