1
0
Fork 0
mirror of synced 2025-03-07 03:53:26 +01:00

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

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=52322
This commit is contained in:
Bernhard Übelacker 2022-01-11 22:15:26 +01:00 committed by Alexandre Julliard
parent 956e580f06
commit 07c0cd6ba5

View file

@ -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 );