Three CertFree functions free the memory used by certificates. CertFreeCertificateContext frees the memory used by a certificate; CertFreeCRLContext frees the memory used by a CRL; and CertFreeCTLContext frees the memory used by a CTL. Each of these functions decreases the reference count on a certificate context. If the reference count is decreased to zero, the memory allocated for the certificate is released.