diff --git a/library/x509_crt.c b/library/x509_crt.c index 32ee35bf82..738a6b4cca 100644 --- a/library/x509_crt.c +++ b/library/x509_crt.c @@ -3501,6 +3501,8 @@ void mbedtls_x509_crt_free(mbedtls_x509_crt *crt) { mbedtls_x509_crt *cert_cur = crt; mbedtls_x509_crt *cert_prv; + mbedtls_x509_sequence *seq_cur; + mbedtls_x509_sequence *seq_prv; while (cert_cur != NULL) { mbedtls_pk_free(&cert_cur->pk);