Commit de0e9ad9 authored by Daniel Lehman's avatar Daniel Lehman Committed by Alexandre Julliard

ntoskrnl.exe: Fix use-after-free when freeing IRP.

parent c9003fab
......@@ -1011,8 +1011,9 @@ NTSTATUS CDECL wine_ntoskrnl_main_loop( HANDLE stop_event )
{
if (context.irp_data->complete)
{
IoCompleteRequest( context.irp_data->irp, IO_NO_INCREMENT );
IRP *irp = context.irp_data->irp;
free_dispatch_irp( context.irp_data );
IoCompleteRequest( irp, IO_NO_INCREMENT );
}
else
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment