https://git.reactos.org/?p=reactos.git;a=commitdiff;h=19bf484a5b5bf50483552aa5bd628203c2cd91e1
commit 19bf484a5b5bf50483552aa5bd628203c2cd91e1 Author: Pierre Schweitzer <[email protected]> AuthorDate: Mon Oct 23 10:21:32 2017 +0200 [FFS] Don't allocate (and leak :-)) an unused event CID 1363607 --- drivers/filesystems/ffs/src/shutdown.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/filesystems/ffs/src/shutdown.c b/drivers/filesystems/ffs/src/shutdown.c index 67062dab9b..ecfcf25ff4 100644 --- a/drivers/filesystems/ffs/src/shutdown.c +++ b/drivers/filesystems/ffs/src/shutdown.c @@ -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);
