projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a1f3462
)
Fix mapping "leak" in newly introduced win32_globallookup.
author
Andy Polyakov
<appro@openssl.org>
Sun, 1 Jan 2006 18:38:59 +0000
(18:38 +0000)
committer
Andy Polyakov
<appro@openssl.org>
Sun, 1 Jan 2006 18:38:59 +0000
(18:38 +0000)
crypto/dso/dso_win32.c
patch
|
blob
|
history
diff --git
a/crypto/dso/dso_win32.c
b/crypto/dso/dso_win32.c
index 73ffe3659134074b51d6ba8f9d02d9c95c6dd354..94fe4733778f5cbcbc93cd50580737632b4b0aeb 100644
(file)
--- a/
crypto/dso/dso_win32.c
+++ b/
crypto/dso/dso_win32.c
@@
-809,7
+809,12
@@
static DSO_FUNC_TYPE win32_globallookup(const char *name)
module_next = (MODULE32)GetProcAddress(dll,"Module32Next");
hModuleSnap = (*create_snap)(TH32CS_SNAPMODULE,0);
- if( hModuleSnap == INVALID_HANDLE_VALUE ) return NULL;
+ if( hModuleSnap == INVALID_HANDLE_VALUE )
+ {
+ FreeLibrary(dll);
+ DSOerr(DSO_F_PATHBYADDR,DSO_R_UNSUPPORTED);
+ return NULL;
+ }
me32.dwSize = sizeof(me32);