Free x509 cert on finish.

Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
Pol Henarejos 2024-08-25 21:17:15 +02:00
parent e8c62e5867
commit 0322967865
No known key found for this signature in database
GPG Key ID: C0095B7870A4CCD3

View File

@ -161,6 +161,7 @@ static int x509_create_cert(void *pk_ctx, uint8_t algo, uint8_t slot, bool attes
if (attestation) {
mbedtls_ecdsa_free(&actx);
}
mbedtls_x509write_crt_free(&ctx);
return ret;
}