CertFreeCTLContext

[DllImport("Crypt32.dll", SetLastError = true)]
public static extern bool CertFreeCTLContext(
   IntPtr pCtlContext
);

Microsoft documentation: Link

Last updated