mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
[NTOS:PS] Dereference the quota block during process cleanup
Ensure that when we're cleaning up the EPROCESS object, that we are dereferencing the quota block the process in question was using. The routine will automatically request a quota block cleanup if the process that dereferenced the quota block was the last.
This commit is contained in:
parent
b22eefac88
commit
ee697cfeef
1 changed files with 6 additions and 2 deletions
|
@ -381,8 +381,12 @@ PspDeleteProcess(IN PVOID ObjectBody)
|
|||
/* Dereference the Device Map */
|
||||
ObDereferenceDeviceMap(Process);
|
||||
|
||||
/* Destroy the Quota Block */
|
||||
PspDestroyQuotaBlock(Process);
|
||||
/*
|
||||
* Dereference the quota block, the function
|
||||
* will invoke a quota block cleanup if the
|
||||
* block itself is no longer used by anybody.
|
||||
*/
|
||||
PspDereferenceQuotaBlock(Process, Process->QuotaBlock);
|
||||
}
|
||||
|
||||
VOID
|
||||
|
|
Loading…
Reference in a new issue