Skip to content

Commit

Permalink
JS: Fix badusb double free crash with quit()
Browse files Browse the repository at this point in the history
  • Loading branch information
Willy-JL committed Apr 11, 2024
1 parent c02be75 commit 6c50877
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions applications/system/js_app/modules/js_badusb.c
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ static void js_badusb_quit_free(JsBadusbInst* badusb) {
}
if(badusb->hid_cfg) {
free(badusb->hid_cfg);
badusb->hid_cfg = NULL;
}
}

Expand Down

0 comments on commit 6c50877

Please sign in to comment.