Fix a crash in for BT HID devices. (#14922)

pad_connection_destroy() frees slots, no need to free it again.
This commit is contained in:
warmenhoven 2023-01-29 08:51:36 -05:00 committed by GitHub
parent e5ba7b9d2f
commit 2946e6704b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 1 deletions

View File

@ -1455,7 +1455,6 @@ static void btstack_hid_free(const void *data)
btpad_set_inquiry_state(true);
btstack_set_poweron(false);
free(slots);
if (hid)
free(hid);
}