Module: wine Branch: master Commit: 90d7172bcbf034a18b713f51355b37584ab53b51 URL: http://source.winehq.org/git/wine.git/?a=commit;h=90d7172bcbf034a18b713f5135...
Author: Juan Lang juan.lang@gmail.com Date: Tue Aug 4 11:51:01 2009 -0700
crypt32: Fix leak on error path.
Spotted by Chris Ahrendt.
---
dlls/crypt32/rootstore.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/crypt32/rootstore.c b/dlls/crypt32/rootstore.c index a2ed6e5..bd6dfac 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