mirror of
https://github.com/polhenarejos/pico-keys-sdk
synced 2026-05-28 00:51:25 +02:00
Fix memory non-freed
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
@@ -885,6 +885,7 @@ void rest_check_and_load_credentials(void) {
|
||||
out:
|
||||
mbedtls_x509write_crt_free(&crt);
|
||||
mbedtls_platform_zeroize(cert_pem, sizeof(cert_pem));
|
||||
mbedtls_pk_free(&key);
|
||||
}
|
||||
tls_credentials.tls_cert_pem = (char *)file_get_data(ef);
|
||||
tls_credentials.tls_cert_pem_len = file_get_size(ef);
|
||||
|
||||
Reference in New Issue
Block a user