From 690ff698f72ae642de359477cc762c891ea69cc1 Mon Sep 17 00:00:00 2001 From: Przemek Stekiel Date: Mon, 15 May 2023 09:54:02 +0200 Subject: [PATCH] mbedtls_x509_crt_free: release authorityCertIssuer sequence Signed-off-by: Przemek Stekiel --- library/x509_crt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/library/x509_crt.c b/library/x509_crt.c index 6d62e4494a..5491b55bf0 100644 --- a/library/x509_crt.c +++ b/library/x509_crt.c @@ -3195,6 +3195,7 @@ void mbedtls_x509_crt_free(mbedtls_x509_crt *crt) mbedtls_asn1_sequence_free(cert_cur->ext_key_usage.next); mbedtls_asn1_sequence_free(cert_cur->subject_alt_names.next); mbedtls_asn1_sequence_free(cert_cur->certificate_policies.next); + mbedtls_asn1_sequence_free(cert_cur->authority_key_id.authorityCertIssuer.next); if (cert_cur->raw.p != NULL && cert_cur->own_buffer) { mbedtls_platform_zeroize(cert_cur->raw.p, cert_cur->raw.len);