From 7a73fd97ad2117180261d4796d48b8ef0df0f818 Mon Sep 17 00:00:00 2001 From: Juan Lang Date: Mon, 2 Nov 2009 10:54:34 -0800 Subject: [PATCH] crypt32: Fix a memory leak reading trusted root certs. --- dlls/crypt32/rootstore.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/crypt32/rootstore.c b/dlls/crypt32/rootstore.c index a4a75ab4655..a55b281601c 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)