From e02846b73f3ca8d560d84db24e8fe48d320efc09 Mon Sep 17 00:00:00 2001 From: Thomas Faber Date: Fri, 1 May 2015 12:00:50 +0000 Subject: [PATCH] [NTOS:IO] - Free the correct event pointer when out of memory in IopDeviceFsIoControl svn path=/trunk/; revision=67491 --- reactos/ntoskrnl/io/iomgr/iofunc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/ntoskrnl/io/iomgr/iofunc.c b/reactos/ntoskrnl/io/iomgr/iofunc.c index ba3ad3dfe6f..a099503feca 100644 --- a/reactos/ntoskrnl/io/iomgr/iofunc.c +++ b/reactos/ntoskrnl/io/iomgr/iofunc.c @@ -346,7 +346,7 @@ IopDeviceFsIoControl(IN HANDLE DeviceHandle, /* Allocate IRP */ Irp = IoAllocateIrp(DeviceObject->StackSize, FALSE); - if (!Irp) return IopCleanupFailedIrp(FileObject, Event, NULL); + if (!Irp) return IopCleanupFailedIrp(FileObject, EventObject, NULL); /* Setup the IRP */ Irp->UserIosb = IoStatusBlock;