mirror of
https://github.com/polhenarejos/pico-openpgp.git
synced 2024-09-19 19:00:15 +00:00
Free x509 cert on finish.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
parent
e8c62e5867
commit
0322967865
@ -161,6 +161,7 @@ static int x509_create_cert(void *pk_ctx, uint8_t algo, uint8_t slot, bool attes
|
|||||||
if (attestation) {
|
if (attestation) {
|
||||||
mbedtls_ecdsa_free(&actx);
|
mbedtls_ecdsa_free(&actx);
|
||||||
}
|
}
|
||||||
|
mbedtls_x509write_crt_free(&ctx);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user