https://git.reactos.org/?p=reactos.git;a=commitdiff;h=05f00fe63b93e38d3a96cdc0756211775e8251be

commit 05f00fe63b93e38d3a96cdc0756211775e8251be
Author: Pierre Schweitzer <[email protected]>
AuthorDate: Sun Oct 22 22:30:22 2017 +0200

    [REISERFS] Don't allocate (and leak :-)) an unused event
    CID 1363603
---
 drivers/filesystems/reiserfs/src/shutdown.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/filesystems/reiserfs/src/shutdown.c 
b/drivers/filesystems/reiserfs/src/shutdown.c
index 9b644bdc9c..8bacff6024 100644
--- a/drivers/filesystems/reiserfs/src/shutdown.c
+++ b/drivers/filesystems/reiserfs/src/shutdown.c
@@ -27,7 +27,9 @@ NTSTATUS
 RfsdShutDown (IN PRFSD_IRP_CONTEXT IrpContext)
 {
     NTSTATUS                Status;
+#ifndef __REACTOS__
     PKEVENT                 Event;
+#endif
     PIRP                    Irp;
     PIO_STACK_LOCATION      IrpSp;
     PRFSD_VCB               Vcb;
@@ -61,8 +63,10 @@ RfsdShutDown (IN PRFSD_IRP_CONTEXT IrpContext)
             
         GlobalResourceAcquired = TRUE;
 
+#ifndef __REACTOS__
         Event = ExAllocatePoolWithTag(NonPagedPool, sizeof(KEVENT), 
RFSD_POOL_TAG);
         KeInitializeEvent(Event, NotificationEvent, FALSE );
+#endif
 
         for (ListEntry = RfsdGlobal->VcbList.Flink;
              ListEntry != &(RfsdGlobal->VcbList);

Reply via email to