From 6c508779e22acca81c533cefc65aebdc8046a49a Mon Sep 17 00:00:00 2001 From: Willy-JL <49810075+Willy-JL@users.noreply.github.com> Date: Thu, 11 Apr 2024 03:33:15 +0100 Subject: [PATCH] JS: Fix badusb double free crash with quit() --- applications/system/js_app/modules/js_badusb.c | 1 + 1 file changed, 1 insertion(+) diff --git a/applications/system/js_app/modules/js_badusb.c b/applications/system/js_app/modules/js_badusb.c index 42e6778424..d2e30b3342 100644 --- a/applications/system/js_app/modules/js_badusb.c +++ b/applications/system/js_app/modules/js_badusb.c @@ -88,6 +88,7 @@ static void js_badusb_quit_free(JsBadusbInst* badusb) { } if(badusb->hid_cfg) { free(badusb->hid_cfg); + badusb->hid_cfg = NULL; } }