Windows: Plug HANDLE leak
authorChris Dickens <christopher.a.dickens@gmail.com>
Mon, 12 Mar 2018 16:54:33 +0000 (09:54 -0700)
committerChris Dickens <christopher.a.dickens@gmail.com>
Mon, 12 Mar 2018 16:54:33 +0000 (09:54 -0700)
Restore a CloseHandle() call that was mistakenly removed during a merge
conflict resolution.

Closes #404

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

index 05af1f6..bbbf8dd 100644 (file)
@@ -898,6 +898,8 @@ static int init_device(struct libusb_device *dev, struct libusb_device *parent_d
                        }
                }
 
+               CloseHandle(hub_handle);
+
                if (conn_info.DeviceAddress > UINT8_MAX)
                        usbi_err(ctx, "program assertion failed - device address overflow");
 
index 9048930..b9b6601 100644 (file)
@@ -1 +1 @@
-#define LIBUSB_NANO 11302
+#define LIBUSB_NANO 11303