mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-10-20 07:37:56 +00:00
Add guards for mbedtls_psa_crypto_free()
Signed-off-by: Przemek Stekiel <[email protected]>
This commit is contained in:
@@ -404,7 +404,9 @@ exit:
|
||||
#endif
|
||||
mbedtls_ctr_drbg_free(&ctr_drbg);
|
||||
mbedtls_entropy_free(&entropy);
|
||||
#if defined(MBEDTLS_USE_PSA_CRYPTO)
|
||||
mbedtls_psa_crypto_free();
|
||||
#endif /* MBEDTLS_USE_PSA_CRYPTO */
|
||||
|
||||
/* Shell can not handle large exit numbers -> 1 for errors */
|
||||
if (ret < 0) {
|
||||
|
||||
Reference in New Issue
Block a user