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 // 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;