Free psa crypto at the end of programs when initialized

Signed-off-by: Przemek Stekiel <[email protected]>
This commit is contained in:
Przemek Stekiel
2023-04-19 10:15:26 +02:00
parent e296868b25
commit a8c560a799
15 changed files with 21 additions and 13 deletions
+1
View File
@@ -404,6 +404,7 @@ exit:
#endif
mbedtls_ctr_drbg_free(&ctr_drbg);
mbedtls_entropy_free(&entropy);
mbedtls_psa_crypto_free();
/* Shell can not handle large exit numbers -> 1 for errors */
if (ret < 0) {