small fix in memory management logic

This commit is contained in:
merlokk 2018-10-09 19:14:17 +03:00
commit 141316c372

View file

@ -1208,12 +1208,13 @@ int CmdHFEMVScan(const char *cmd) {
// check search and select application id
TLVPrintAIDlistFromSelectTLV(tlvSelect);
}
tlvdb_free(tlvSelect);
// EMV SELECT application
SetAPDULogging(showAPDU);
EMVSelectApplication(tlvSelect, AID, &AIDlen);
tlvdb_free(tlvSelect);
if (!AIDlen) {
PrintAndLog("Can't select AID. EMV AID not found. Exit...");
return 4;