mirror of
https://github.com/reactos/reactos.git
synced 2025-04-22 13:10:39 +00:00
[NTOSKRNL]
Assert that the allocated buffers are not leaked. CID #1248416 svn path=/trunk/; revision=71937
This commit is contained in:
parent
aeaced7e5a
commit
e7bb031141
1 changed files with 4 additions and 0 deletions
|
@ -134,6 +134,8 @@ FsRtlIsNameInExpressionPrivate(IN PUNICODE_STRING Expression,
|
||||||
StarFound++;
|
StarFound++;
|
||||||
if (StarFound >= BackTrackingSize)
|
if (StarFound >= BackTrackingSize)
|
||||||
{
|
{
|
||||||
|
ASSERT(BackTracking == BackTrackingBuffer);
|
||||||
|
|
||||||
BackTrackingSize = Expression->Length / sizeof(WCHAR);
|
BackTrackingSize = Expression->Length / sizeof(WCHAR);
|
||||||
BackTracking = ExAllocatePoolWithTag(PagedPool | POOL_RAISE_IF_ALLOCATION_FAILURE,
|
BackTracking = ExAllocatePoolWithTag(PagedPool | POOL_RAISE_IF_ALLOCATION_FAILURE,
|
||||||
BackTrackingSize * sizeof(USHORT),
|
BackTrackingSize * sizeof(USHORT),
|
||||||
|
@ -190,6 +192,8 @@ FsRtlIsNameInExpressionPrivate(IN PUNICODE_STRING Expression,
|
||||||
DosStarFound++;
|
DosStarFound++;
|
||||||
if (DosStarFound >= DosBackTrackingSize)
|
if (DosStarFound >= DosBackTrackingSize)
|
||||||
{
|
{
|
||||||
|
ASSERT(DosBackTracking == DosBackTrackingBuffer);
|
||||||
|
|
||||||
DosBackTrackingSize = Expression->Length / sizeof(WCHAR);
|
DosBackTrackingSize = Expression->Length / sizeof(WCHAR);
|
||||||
DosBackTracking = ExAllocatePoolWithTag(PagedPool | POOL_RAISE_IF_ALLOCATION_FAILURE,
|
DosBackTracking = ExAllocatePoolWithTag(PagedPool | POOL_RAISE_IF_ALLOCATION_FAILURE,
|
||||||
DosBackTrackingSize * sizeof(USHORT),
|
DosBackTrackingSize * sizeof(USHORT),
|
||||||
|
|
Loading…
Reference in a new issue