mirror of
https://github.com/reactos/reactos.git
synced 2025-05-27 21:18:15 +00:00
[REISERFS] Don't allocate (and leak :-)) an unused event
CID 1363603
This commit is contained in:
parent
31a11bba7e
commit
05f00fe63b
1 changed files with 4 additions and 0 deletions
|
@ -27,7 +27,9 @@ NTSTATUS
|
||||||
RfsdShutDown (IN PRFSD_IRP_CONTEXT IrpContext)
|
RfsdShutDown (IN PRFSD_IRP_CONTEXT IrpContext)
|
||||||
{
|
{
|
||||||
NTSTATUS Status;
|
NTSTATUS Status;
|
||||||
|
#ifndef __REACTOS__
|
||||||
PKEVENT Event;
|
PKEVENT Event;
|
||||||
|
#endif
|
||||||
PIRP Irp;
|
PIRP Irp;
|
||||||
PIO_STACK_LOCATION IrpSp;
|
PIO_STACK_LOCATION IrpSp;
|
||||||
PRFSD_VCB Vcb;
|
PRFSD_VCB Vcb;
|
||||||
|
@ -61,8 +63,10 @@ RfsdShutDown (IN PRFSD_IRP_CONTEXT IrpContext)
|
||||||
|
|
||||||
GlobalResourceAcquired = TRUE;
|
GlobalResourceAcquired = TRUE;
|
||||||
|
|
||||||
|
#ifndef __REACTOS__
|
||||||
Event = ExAllocatePoolWithTag(NonPagedPool, sizeof(KEVENT), RFSD_POOL_TAG);
|
Event = ExAllocatePoolWithTag(NonPagedPool, sizeof(KEVENT), RFSD_POOL_TAG);
|
||||||
KeInitializeEvent(Event, NotificationEvent, FALSE );
|
KeInitializeEvent(Event, NotificationEvent, FALSE );
|
||||||
|
#endif
|
||||||
|
|
||||||
for (ListEntry = RfsdGlobal->VcbList.Flink;
|
for (ListEntry = RfsdGlobal->VcbList.Flink;
|
||||||
ListEntry != &(RfsdGlobal->VcbList);
|
ListEntry != &(RfsdGlobal->VcbList);
|
||||||
|
|
Loading…
Reference in a new issue