diff --git a/dlls/oleaut32/typelib.c b/dlls/oleaut32/typelib.c index b680facc018..07da88f6995 100644 --- a/dlls/oleaut32/typelib.c +++ b/dlls/oleaut32/typelib.c @@ -2210,6 +2210,7 @@ static int TLB_ReadTypeLib(LPCWSTR pszFileName, LPWSTR pszPath, UINT cchPath, IT *ppTypeLib = (ITypeLib2*)entry; ITypeLib_AddRef(*ppTypeLib); LeaveCriticalSection(&cache_section); + FreeLibrary(hinstDLL); return S_OK; } }