Eliminate possible mapping leak.

This commit is contained in:
Andy Polyakov 2005-12-18 19:14:01 +00:00
parent 5d7324e42d
commit 63d3fc9106

View File

@ -704,6 +704,7 @@ static int win32_pathbyaddr(void *addr,char *path,int sz)
GetProcAddress(dll,"CreateToolhelp32Snapshot"); GetProcAddress(dll,"CreateToolhelp32Snapshot");
if (create_snap == NULL) if (create_snap == NULL)
{ {
FreeLibrary(dll);
DSOerr(DSO_F_PATHBYADDR,DSO_R_UNSUPPORTED); DSOerr(DSO_F_PATHBYADDR,DSO_R_UNSUPPORTED);
return -1; return -1;
} }