mirror of
https://github.com/Proxmark/proxmark3.git
synced 2025-08-22 06:13:27 -07:00
added free(udol_data_tlv)
This commit is contained in:
parent
77ad886938
commit
1c8f6acadc
1 changed files with 2 additions and 0 deletions
|
@ -798,6 +798,7 @@ int CmdHFEMVExec(const char *cmd) {
|
||||||
res = MSCComputeCryptoChecksum(true, (uint8_t *)udol_data_tlv->value, udol_data_tlv->len, buf, sizeof(buf), &len, &sw, tlvRoot);
|
res = MSCComputeCryptoChecksum(true, (uint8_t *)udol_data_tlv->value, udol_data_tlv->len, buf, sizeof(buf), &len, &sw, tlvRoot);
|
||||||
if (res) {
|
if (res) {
|
||||||
PrintAndLog("ERROR Compute Crypto Checksum. APDU error %4x", sw);
|
PrintAndLog("ERROR Compute Crypto Checksum. APDU error %4x", sw);
|
||||||
|
free(udol_data_tlv);
|
||||||
dreturn(9);
|
dreturn(9);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -805,6 +806,7 @@ int CmdHFEMVExec(const char *cmd) {
|
||||||
TLVPrintFromBuffer(buf, len);
|
TLVPrintFromBuffer(buf, len);
|
||||||
PrintAndLog("");
|
PrintAndLog("");
|
||||||
}
|
}
|
||||||
|
free(udol_data_tlv);
|
||||||
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue