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:
Moussa Ouallaf 2026-09-19 10:28:02 +00:00 • committed by GitHub
commit 67cf5a4654
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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
* usb_dfu_find again after returning error. */
libusb_free_device_list(devs, 1);
return -1;
}
if (ret != LIBUSB_SUCCESS)