1
0
Fork 0
mirror of https://github.com/suchmememanyskill/TegraExplorer.git synced 2024-09-16 20:13:24 +01:00

list_empty does not empty the list, oops

This commit is contained in:
suchmememanyskill 2020-12-29 02:12:35 +01:00
parent 82c5555112
commit 9753893045
2 changed files with 2 additions and 4 deletions

View file

@ -36,7 +36,7 @@ int GetKeysFromFile(char *path){
if (!sd_mount())
return 1;
LIST_INIT(iniList);
LIST_INIT(iniList); // Whatever we'll just let this die in memory hell
if (!ini_parse(&iniList, path, false))
return 1;
@ -47,8 +47,7 @@ int GetKeysFromFile(char *path){
AddKey(dumpedKeys.master_key, getKey("master_key_00", &iniList), AES_128_KEY_SIZE);
AddKey(dumpedKeys.header_key, getKey("header_key", &iniList), AES_128_KEY_SIZE * 2);
AddKey(dumpedKeys.save_mac_key, getKey("save_mac_key", &iniList), AES_128_KEY_SIZE);
list_empty(&iniList);
gfx_puts(" Done");
return 0;
}

View file

@ -36,7 +36,6 @@ void disconnectMMC(){
TConf.currentMMCConnected = MMC_CONN_None;
emummc_storage_end(&emmc_storage);
nx_emmc_gpt_free(&curGpt);
list_empty(&curGpt);
}
}