projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0503d88
)
[FFS] Don't allocate (and leak :-)) an unused event
author
Pierre Schweitzer
<pierre@reactos.org>
Mon, 23 Oct 2017 08:21:32 +0000
(10:21 +0200)
committer
Pierre Schweitzer
<pierre@reactos.org>
Mon, 23 Oct 2017 08:35:21 +0000
(10:35 +0200)
CID
1363607
drivers/filesystems/ffs/src/shutdown.c
patch
|
blob
|
history
diff --git
a/drivers/filesystems/ffs/src/shutdown.c
b/drivers/filesystems/ffs/src/shutdown.c
index
67062da
..
ecfcf25
100644
(file)
--- a/
drivers/filesystems/ffs/src/shutdown.c
+++ b/
drivers/filesystems/ffs/src/shutdown.c
@@
-33,7
+33,9
@@
FFSShutDown(
{
NTSTATUS Status;
{
NTSTATUS Status;
+#ifndef __REACTOS__
PKEVENT Event;
PKEVENT Event;
+#endif
PIRP Irp;
PIO_STACK_LOCATION IrpSp;
PIRP Irp;
PIO_STACK_LOCATION IrpSp;
@@
-70,8
+72,10
@@
FFSShutDown(
GlobalResourceAcquired = TRUE;
GlobalResourceAcquired = TRUE;
+#ifndef __REACTOS__
Event = ExAllocatePoolWithTag(NonPagedPool, sizeof(KEVENT), FFS_POOL_TAG);
KeInitializeEvent(Event, NotificationEvent, FALSE);
Event = ExAllocatePoolWithTag(NonPagedPool, sizeof(KEVENT), FFS_POOL_TAG);
KeInitializeEvent(Event, NotificationEvent, FALSE);
+#endif
for (ListEntry = FFSGlobal->VcbList.Flink;
ListEntry != &(FFSGlobal->VcbList);
for (ListEntry = FFSGlobal->VcbList.Flink;
ListEntry != &(FFSGlobal->VcbList);