Gitweb: http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=767fe7877c2928b5633992ee60a49ad4516dc2af Commit: 767fe7877c2928b5633992ee60a49ad4516dc2af Parent: 99abfeafb5f2eea1bb481330ff37343e1133c924 Author: Jiri Kosina <[EMAIL PROTECTED]> AuthorDate: Wed Jan 24 23:05:07 2007 +0100 Committer: Jiri Kosina <[EMAIL PROTECTED]> CommitDate: Thu Jan 25 18:31:21 2007 +0100
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 <[EMAIL PROTECTED]> --- drivers/hid/hid-core.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) 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 @@ void hid_free_device(struct hid_device *device) } kfree(device->rdesc); + kfree(device->collection); kfree(device); } EXPORT_SYMBOL_GPL(hid_free_device); - To unsubscribe from this list: send the line "unsubscribe git-commits-head" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html