diff --git a/src/x509.c b/src/x509.c index 759e1fc6f..be1d36f2b 100644 --- a/src/x509.c +++ b/src/x509.c @@ -7355,7 +7355,7 @@ void wolfSSL_X509_ACERT_free(WOLFSSL_X509_ACERT* x509) /* Finally memset and free x509 acert structure. */ XMEMSET(x509, 0, sizeof(*x509)); - XFREE(x509, x509->heap, NULL); + XFREE(x509, NULL, DYNAMIC_TYPE_X509_ACERT); return; }