Windows: Fix memory and handle leaks in winusbx_claim_interface()
authorChris Dickens <christopher.a.dickens@gmail.com>
Thu, 12 Jan 2017 22:36:20 +0000 (14:36 -0800)
committerChris Dickens <christopher.a.dickens@gmail.com>
Thu, 12 Jan 2017 23:26:40 +0000 (15:26 -0800)
commita7a84d2690ddcf11a1cd7de3a13e663dc8b88e5a
tree1ff388c5ffb3a2943af0b430ef2bd054c40fbdee
parenta2b31bc0ac7a3862641f2a1eb8d79e0139c18d9e
Windows: Fix memory and handle leaks in winusbx_claim_interface()

When using the libusb0 filter driver, the loop could potentially leak the
memory for dev_interface_details. In that same loop, if the dev path
without the GUID matches the interface path, the new file handle would
be leaked.

Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
libusb/os/windows_winusb.c
libusb/version_nano.h