mirror of
https://github.com/reactos/reactos.git
synced 2024-11-25 12:33:34 +08:00
[NTOSKRNL] Don't dereference VACB when allocating its memory area fails
This avoids performing a double-free (even though that's hidden by the fact we use lookaside allocations for VACB), and it avoids freeing a memory address at an uninitialized address. We don't care about references here, the VACB was just allocated, never linked and we're its only user. CORE-15413
This commit is contained in:
parent
60e9fcc8f0
commit
182cc5c5ab
@ -833,7 +833,6 @@ Retry:
|
||||
goto Retry;
|
||||
}
|
||||
|
||||
CcRosVacbDecRefCount(current);
|
||||
ExFreeToNPagedLookasideList(&VacbLookasideList, current);
|
||||
return Status;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user