Eliminate possible mapping leak.
[openssl.git] / crypto / dso / dso_win32.c
index e417330..b44f25c 100644 (file)
@@ -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;
                }