Commit ef79507d authored by Juan Lang's avatar Juan Lang Committed by Alexandre Julliard

crypt32: Don't free a certificate that hasn't been removed from its store.

parent b9c3e931
......@@ -978,7 +978,8 @@ BOOL WINAPI CertDeleteCertificateFromStore(PCCERT_CONTEXT pCertContext)
ret = FALSE;
else
ret = hcs->certs.deleteContext(hcs, (void *)pCertContext);
CertFreeCertificateContext(pCertContext);
if (ret)
CertFreeCertificateContext(pCertContext);
}
return ret;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment