projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Eliminate possible mapping leak.
[openssl.git]
/
crypto
/
dso
/
dso_win32.c
diff --git
a/crypto/dso/dso_win32.c
b/crypto/dso/dso_win32.c
index e41733097a74a0827b1216b86dac80176ee669a3..b44f25c5799360d3307f0a151417c4ad87010f6e 100644
(file)
--- a/
crypto/dso/dso_win32.c
+++ b/
crypto/dso/dso_win32.c
@@
-704,6
+704,7
@@
static int win32_pathbyaddr(void *addr,char *path,int sz)
GetProcAddress(dll,"CreateToolhelp32Snapshot");
if (create_snap == NULL)
{
GetProcAddress(dll,"CreateToolhelp32Snapshot");
if (create_snap == NULL)
{
+ FreeLibrary(dll);
DSOerr(DSO_F_PATHBYADDR,DSO_R_UNSUPPORTED);
return -1;
}
DSOerr(DSO_F_PATHBYADDR,DSO_R_UNSUPPORTED);
return -1;
}