summaryrefslogtreecommitdiff
path: root/crypto/dso
diff options
context:
space:
mode:
authorappro <appro>2005-12-18 19:14:01 +0000
committerappro <appro>2005-12-18 19:14:01 +0000
commit0b7ec978d86dd3be99e8b4eab6e359663b9e1a46 (patch)
treeab9737f984723b70807a040ef2006be7dacb8c8b /crypto/dso
parent7772f39424dee20cabb0003c3a2567580813f3ff (diff)
downloadopenssl-0b7ec978d86dd3be99e8b4eab6e359663b9e1a46.tar.gz
Eliminate possible mapping leak.
Diffstat (limited to 'crypto/dso')
-rw-r--r--crypto/dso/dso_win32.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/dso/dso_win32.c b/crypto/dso/dso_win32.c
index e41733097..b44f25c57 100644
--- 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)
{
+ FreeLibrary(dll);
DSOerr(DSO_F_PATHBYADDR,DSO_R_UNSUPPORTED);
return -1;
}