summaryrefslogtreecommitdiff
path: root/crypto/dso
diff options
context:
space:
mode:
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;
}