commit | 767fe7877c2928b5633992ee60a49ad4516dc2af | [log] [tgz] |
---|---|---|
author | Jiri Kosina <jkosina@suse.cz> | Wed Jan 24 23:05:07 2007 +0100 |
committer | Jiri Kosina <jkosina@suse.cz> | Thu Jan 25 18:31:21 2007 +0100 |
tree | 9623c4149575ce26af4ff4cf908bec6eb37d4072 | |
parent | 99abfeafb5f2eea1bb481330ff37343e1133c924 [diff] |
HID: fix memleaking of collection hid_free_device() doesn't free device->collection (but it does free device->rdesc and device itself). This imposes memory leak. Fix it. Signed-off-by: Jiri Kosina <jkosina@suse.cz>
diff --git a/drivers/hid/hid-core.c b/drivers/hid/hid-core.c index b8cf50f..49f18f5 100644 --- a/drivers/hid/hid-core.c +++ b/drivers/hid/hid-core.c
@@ -543,6 +543,7 @@ } kfree(device->rdesc); + kfree(device->collection); kfree(device); } EXPORT_SYMBOL_GPL(hid_free_device);