FIXED: Merged all Holimans code-review issues which should fix a lot of memoryleaks.
This commit is contained in:
@@ -501,7 +501,9 @@ int CmdHFiClassReader_Dump(const char *Cmd)
|
||||
SendCommand(&c);
|
||||
|
||||
UsbCommand resp;
|
||||
|
||||
uint8_t key_sel[8] = {0x00};
|
||||
uint8_t key_sel_p[8] = {0x00};
|
||||
|
||||
if (WaitForResponseTimeout(CMD_ACK,&resp,4500)) {
|
||||
uint8_t isOK = resp.arg[0] & 0xff;
|
||||
uint8_t * data = resp.d.asBytes;
|
||||
@@ -519,8 +521,7 @@ int CmdHFiClassReader_Dump(const char *Cmd)
|
||||
{
|
||||
if(elite)
|
||||
{
|
||||
uint8_t key_sel[8] = {0};
|
||||
uint8_t key_sel_p[8] = { 0 };
|
||||
|
||||
//Get the key index (hash1)
|
||||
uint8_t key_index[8] = {0};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user