mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2024-12-23 21:34:35 +03:00
Fix memory leak in static encrypted attack
This commit is contained in:
parent
a905c1492d
commit
a1590fc74a
@ -158,6 +158,9 @@ static void nfc_scene_mf_classic_dict_attack_prepare_view(NfcApp* instance) {
|
|||||||
furi_string_get_cstr(cuid_dict_path),
|
furi_string_get_cstr(cuid_dict_path),
|
||||||
KeysDictModeOpenExisting,
|
KeysDictModeOpenExisting,
|
||||||
sizeof(MfClassicKey));
|
sizeof(MfClassicKey));
|
||||||
|
|
||||||
|
furi_string_free(cuid_dict_path);
|
||||||
|
|
||||||
if(keys_dict_get_total_keys(instance->nfc_dict_context.dict) == 0) {
|
if(keys_dict_get_total_keys(instance->nfc_dict_context.dict) == 0) {
|
||||||
keys_dict_free(instance->nfc_dict_context.dict);
|
keys_dict_free(instance->nfc_dict_context.dict);
|
||||||
state = DictAttackStateUserDictInProgress;
|
state = DictAttackStateUserDictInProgress;
|
||||||
|
Loading…
Reference in New Issue
Block a user