ntoskrnl: Free allocated buffers on exit from wine_ntoskrnl_main_loop.

Avoids a warning of a memory leak in Valgrind.
This commit is contained in:
Rob Shearman 2009-01-10 20:56:10 +00:00 committed by Alexandre Julliard
parent b3c8124a15
commit 07090c2485

View file

@ -257,7 +257,11 @@ NTSTATUS CDECL wine_ntoskrnl_main_loop( HANDLE stop_event )
break;
case STATUS_PENDING:
if (WaitForMultipleObjects( 2, handles, FALSE, INFINITE ) == WAIT_OBJECT_0)
{
HeapFree( GetProcessHeap(), 0, in_buff );
HeapFree( GetProcessHeap(), 0, out_buff );
return STATUS_SUCCESS;
}
break;
}
}