mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
[FFS] Don't allocate (and leak :-)) an unused event
CID 1363607
This commit is contained in:
parent
0503d8808c
commit
19bf484a5b
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue