diff --git a/dlls/crypt32/rootstore.c b/dlls/crypt32/rootstore.c index a2ed6e55542..bd6dfac450a 100644 --- a/dlls/crypt32/rootstore.c +++ b/dlls/crypt32/rootstore.c @@ -339,9 +339,9 @@ static BOOL import_certs_from_dir(LPCSTR path, HCERTSTORE store) ret = TRUE; } } - closedir(dir); CryptMemFree(filebuf); } + closedir(dir); } return ret; #else