Mercurial > trustbridge
changeset 1328:18211dce3106
Do not free cert context after deletion
CertDeleteCertificateFromStore already frees the context.
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Wed, 15 Oct 2014 13:17:02 +0200 |
parents | 562d66614b5c |
children | 64333dad503b |
files | cinst/windowsstore.c |
diffstat | 1 files changed, 0 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/cinst/windowsstore.c Wed Oct 15 13:06:19 2014 +0200 +++ b/cinst/windowsstore.c Wed Oct 15 13:17:02 2014 +0200 @@ -93,13 +93,11 @@ char *error = getLastErrorMsg(); ERRORPRINTF ("Error deleting certificate. %s", error); debug_print_subject (pCert); - CertFreeCertificateContext (pCert); free (error); continue; } log_certificate (elevated ? "Local Machine" : "Current User", to_remove[i], false); - CertFreeCertificateContext (pCert); } return; }