mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-11 06:09:08 -07:00
JS: Fix badusb double free crash with quit()
This commit is contained in:
@@ -88,6 +88,7 @@ static void js_badusb_quit_free(JsBadusbInst* badusb) {
|
||||
}
|
||||
if(badusb->hid_cfg) {
|
||||
free(badusb->hid_cfg);
|
||||
badusb->hid_cfg = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user