mirror of
https://github.com/Proxmark/proxmark3.git
synced 2025-08-24 06:55:27 -07:00
small fix in memory management logic
This commit is contained in:
parent
05d1458789
commit
141316c372
1 changed files with 2 additions and 1 deletions
|
@ -1208,12 +1208,13 @@ int CmdHFEMVScan(const char *cmd) {
|
||||||
// check search and select application id
|
// check search and select application id
|
||||||
TLVPrintAIDlistFromSelectTLV(tlvSelect);
|
TLVPrintAIDlistFromSelectTLV(tlvSelect);
|
||||||
}
|
}
|
||||||
tlvdb_free(tlvSelect);
|
|
||||||
|
|
||||||
// EMV SELECT application
|
// EMV SELECT application
|
||||||
SetAPDULogging(showAPDU);
|
SetAPDULogging(showAPDU);
|
||||||
EMVSelectApplication(tlvSelect, AID, &AIDlen);
|
EMVSelectApplication(tlvSelect, AID, &AIDlen);
|
||||||
|
|
||||||
|
tlvdb_free(tlvSelect);
|
||||||
|
|
||||||
if (!AIDlen) {
|
if (!AIDlen) {
|
||||||
PrintAndLog("Can't select AID. EMV AID not found. Exit...");
|
PrintAndLog("Can't select AID. EMV AID not found. Exit...");
|
||||||
return 4;
|
return 4;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue