ntoskrnl.exe: Fix use-after-free when freeing IRP.
Signed-off-by: Daniel Lehman <dlehman@esri.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
c9003fab66
commit
de0e9ad965
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue