Caller don't expect those lookups to be RC'd so they don't compensate. This leads to unbound growth of their ref count, which eventually overflows.
mono_w32error_set_last (ERROR_NO_MORE_FILES);
goto done;
}
mono_w32error_set_last (ERROR_NO_MORE_FILES);
goto done;
}
- } else {
- /* Add a reference to this handle */
- mono_w32handle_ref (handle);
gpointer
ves_icall_Microsoft_Win32_NativeMethods_GetCurrentProcess (void)
{
gpointer
ves_icall_Microsoft_Win32_NativeMethods_GetCurrentProcess (void)
{
- mono_w32handle_ref (current_process);
return current_process;
}
return current_process;
}