Add missing memory free

This commit is contained in:
kormax
2023-07-10 10:45:22 +03:00
parent abd2f759ae
commit 642cdd86d3
+1
View File
@@ -195,6 +195,7 @@ static int LoadReaderPrivateKey(uint8_t *buf, size_t bufLen, mbedtls_ecp_keypair
if (mbedtls_ecp_check_pubkey(&privKey->grp, &privKey->Q)) {
PrintAndLogEx(FAILED, "VAS protocol requires an elliptic key on the P-256 curve");
tlvdb_free(derRoot);
return PM3_EINVARG;
}