Commit 767fe787 authored by Jiri Kosina's avatar Jiri Kosina

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: default avatarJiri Kosina <jkosina@suse.cz>
parent 99abfeaf
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment