From: Andy Polyakov Date: Sun, 18 Dec 2005 19:14:01 +0000 (+0000) Subject: Eliminate possible mapping leak. X-Git-Tag: OpenSSL_0_9_8k^2~1633 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=63d3fc91065c32d5cfb366f1e7e413bc607697d6;p=oweals%2Fopenssl.git Eliminate possible mapping leak. --- diff --git a/crypto/dso/dso_win32.c b/crypto/dso/dso_win32.c index e41733097a..b44f25c579 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; }