js fix badusb double free crash with quit()

by Willy-JL
This commit is contained in:
MX
2024-04-12 20:02:38 +03:00
parent 6bb605f8ce
commit b299604932

View File

@@ -88,6 +88,7 @@ static void js_badusb_quit_free(JsBadusbInst* badusb) {
}
if(badusb->hid_cfg) {
free(badusb->hid_cfg);
badusb->hid_cfg = NULL;
}
}