Merge pull request #136 from tr4m0ryp/fix/double-free-devlist
fix: remove double-free of libusb device list in EBUSY path
This commit is contained in:
commit
67cf5a4654
1 changed files with 0 additions and 1 deletions
|
|
@ -194,7 +194,6 @@ int usb_dfu_find(libusb_device_handle **handle, uint8_t *iserial_out)
|
||||||
}
|
}
|
||||||
/* The caller (checkm8_exploit / usb_dfu_find retry) will call
|
/* The caller (checkm8_exploit / usb_dfu_find retry) will call
|
||||||
* usb_dfu_find again after returning error. */
|
* usb_dfu_find again after returning error. */
|
||||||
libusb_free_device_list(devs, 1);
|
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
if (ret != LIBUSB_SUCCESS)
|
if (ret != LIBUSB_SUCCESS)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue