Juan Lang : crypt32: Fix leak on error path.
Alexandre Julliard
julliard at winehq.org
Wed Aug 5 09:48:29 CDT 2009
Module: wine
Branch: master
Commit: 90d7172bcbf034a18b713f51355b37584ab53b51
URL: http://source.winehq.org/git/wine.git/?a=commit;h=90d7172bcbf034a18b713f51355b37584ab53b51
Author: Juan Lang <juan.lang at 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
More information about the wine-cvs
mailing list