projects
/
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
73ffe36
..
94fe473
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);