Even a simplified version of the line leaks:
For Local i:Int = 1 To 1000000 Local DLL:Int = LoadLibraryA ( "Data/DLL/OSInfo.dll" ) Local GetOSInfoProc:Byte Ptr ( typ:Byte Ptr ) "win32" = GetProcAddress ( DLL, "GetOSInfo" ) Local Name:Byte Ptr = GetOSInfoProc ( ("Name".ToCString ( ) ) ) FreeLibrary ( DLL ) GCCollect() Next