[FFS] Don't allocate (and leak :-)) an unused event
authorPierre Schweitzer <pierre@reactos.org>
Mon, 23 Oct 2017 08:21:32 +0000 (10:21 +0200)
committerPierre Schweitzer <pierre@reactos.org>
Mon, 23 Oct 2017 08:35:21 +0000 (10:35 +0200)
CID 1363607

drivers/filesystems/ffs/src/shutdown.c

index 67062da..ecfcf25 100644 (file)
@@ -33,7 +33,9 @@ FFSShutDown(
 {
        NTSTATUS                Status;
 
+#ifndef __REACTOS__
        PKEVENT                 Event;
+#endif
 
        PIRP                    Irp;
        PIO_STACK_LOCATION      IrpSp;
@@ -70,8 +72,10 @@ FFSShutDown(
 
                GlobalResourceAcquired = TRUE;
 
+#ifndef __REACTOS__
                Event = ExAllocatePoolWithTag(NonPagedPool, sizeof(KEVENT), FFS_POOL_TAG);
                KeInitializeEvent(Event, NotificationEvent, FALSE);
+#endif
 
                for (ListEntry = FFSGlobal->VcbList.Flink;
                                ListEntry != &(FFSGlobal->VcbList);