mirror of
https://github.com/reactos/reactos.git
synced 2024-06-29 01:12:06 +00: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;
|
goto Retry;
|
||||||
}
|
}
|
||||||
|
|
||||||
CcRosVacbDecRefCount(current);
|
|
||||||
ExFreeToNPagedLookasideList(&VacbLookasideList, current);
|
ExFreeToNPagedLookasideList(&VacbLookasideList, current);
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue