Windows: Fix regression introduced by 05b0b55b

Closes #298, Closes #300

Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
This commit is contained in:
Chris Dickens
2017-05-11 21:33:04 -07:00
parent b06b4d101b
commit fc9962027f
2 changed files with 5 additions and 3 deletions
+4 -2
View File
@@ -244,8 +244,10 @@ static inline void windows_device_priv_release(struct libusb_device *dev)
int i;
free(p->path);
for (i = 0; i < dev->num_configurations; i++)
free(p->config_descriptor[i]);
if ((dev->num_configurations > 0) && (p->config_descriptor != NULL)) {
for (i = 0; i < dev->num_configurations; i++)
free(p->config_descriptor[i]);
}
free(p->config_descriptor);
free(p->hid);
for (i = 0; i < USB_MAXINTERFACES; i++) {
+1 -1
View File
@@ -1 +1 @@
#define LIBUSB_NANO 11197
#define LIBUSB_NANO 11198