Juan Lang : crypt32: Don't free a certificate that hasn' t been removed from its store.
Alexandre Julliard
julliard at winehq.org
Tue Aug 11 10:47:11 CDT 2009
Module: wine
Branch: master
Commit: ef79507d88674e2154606fccbbedc8a3f610fb02
URL: http://source.winehq.org/git/wine.git/?a=commit;h=ef79507d88674e2154606fccbbedc8a3f610fb02
Author: Juan Lang <juan.lang at gmail.com>
Date: Mon Aug 10 10:42:55 2009 -0700
crypt32: Don't free a certificate that hasn't been removed from its store.
---
dlls/crypt32/store.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/dlls/crypt32/store.c b/dlls/crypt32/store.c
index e043315..8acc6f6 100644
--- a/dlls/crypt32/store.c
+++ b/dlls/crypt32/store.c
@@ -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;
}
More information about the wine-cvs
mailing list