From 642cdd86d3f83a536c29c1ceccb4a7c690b65733 Mon Sep 17 00:00:00 2001 From: kormax Date: Mon, 10 Jul 2023 10:45:22 +0300 Subject: [PATCH] Add missing memory free --- client/src/cmdhfvas.c | 1 + 1 file changed, 1 insertion(+) diff --git a/client/src/cmdhfvas.c b/client/src/cmdhfvas.c index 034118d39..d4c254508 100644 --- a/client/src/cmdhfvas.c +++ b/client/src/cmdhfvas.c @@ -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; }