Commit 07c0cd6b authored by Bernhard Übelacker's avatar Bernhard Übelacker Committed by Alexandre Julliard

ntoskrnl: Do not leak memory by setting input buffer to NULL.

parent 956e580f
......@@ -832,7 +832,6 @@ static NTSTATUS dispatch_volume( struct dispatch_context *context )
irp->Tail.Overlay.Thread = (PETHREAD)KeGetCurrentThread();
irp->Tail.Overlay.OriginalFileObject = file;
irp->RequestorMode = UserMode;
context->in_buff = NULL;
irp->Flags |= IRP_DEALLOCATE_BUFFER; /* deallocate out_buff */
return dispatch_irp( device, irp, context );
......
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