Module: wine Branch: master Commit: 7a73fd97ad2117180261d4796d48b8ef0df0f818 URL: http://source.winehq.org/git/wine.git/?a=commit;h=7a73fd97ad2117180261d4796d...
Author: Juan Lang juan.lang@gmail.com Date: Mon Nov 2 10:54:34 2009 -0800
crypt32: Fix a memory leak reading trusted root certs.
---
dlls/crypt32/rootstore.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/dlls/crypt32/rootstore.c b/dlls/crypt32/rootstore.c index a4a75ab..a55b281 100644 --- a/dlls/crypt32/rootstore.c +++ b/dlls/crypt32/rootstore.c @@ -719,6 +719,7 @@ static void read_trusted_roots_from_known_locations(HCERTSTORE store) ret = import_certs_from_path(CRYPT_knownLocations[i], from, TRUE); check_and_store_certs(from, store); } + CertCloseStore(from, 0); }
static HCERTSTORE create_root_store(void)