crypt32: Don't free a certificate that hasn't been removed from its store.
This commit is contained in:
parent
b9c3e9310a
commit
ef79507d88
|
@ -978,6 +978,7 @@ BOOL WINAPI CertDeleteCertificateFromStore(PCCERT_CONTEXT pCertContext)
|
|||
ret = FALSE;
|
||||
else
|
||||
ret = hcs->certs.deleteContext(hcs, (void *)pCertContext);
|
||||
if (ret)
|
||||
CertFreeCertificateContext(pCertContext);
|
||||
}
|
||||
return ret;
|
||||
|
|
Loading…
Reference in New Issue