mirror of
https://github.com/reactos/reactos.git
synced 2024-07-05 12:15:46 +00:00
- Several ExFreePool -> ExFreePoolWithTag changes (local allocations)
- Tested for ~2 weeks now, no BAD_POOL_CALLER's so far svn path=/trunk/; revision=37169
This commit is contained in:
parent
3e1f229f1c
commit
bbf8408292
|
@ -56,7 +56,7 @@ EngMapEvent(IN HDEV Dev,
|
|||
NULL);
|
||||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
ExFreePool(Event);
|
||||
ExFreePoolWithTag(Event, TAG_DFSM);
|
||||
return NULL;
|
||||
}
|
||||
else
|
||||
|
|
|
@ -16,7 +16,7 @@ EngCreateSemaphore ( VOID )
|
|||
return NULL;
|
||||
if ( !NT_SUCCESS(ExInitializeResourceLite ( psem )) )
|
||||
{
|
||||
ExFreePool ( psem );
|
||||
ExFreePoolWithTag ( psem, TAG_GSEM );
|
||||
return NULL;
|
||||
}
|
||||
return (HSEMAPHORE)psem;
|
||||
|
|
|
@ -371,7 +371,7 @@ NtUserCreateAcceleratorTable(
|
|||
Status = MmCopyFromCaller(Accel->Table, Entries, EntriesCount * sizeof(ACCEL));
|
||||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
ExFreePool(Accel->Table);
|
||||
ExFreePoolWithTag(Accel->Table, TAG_ACCEL);
|
||||
UserDereferenceObject(Accel);
|
||||
UserDeleteObject(hAccel, otAccel);
|
||||
SetLastNtError(Status);
|
||||
|
|
|
@ -123,7 +123,7 @@ IntQueryCaretBlinkRate(VOID)
|
|||
if(!NT_SUCCESS(Status) || (KeyValuePartialInfo->Type != REG_SZ))
|
||||
{
|
||||
NtClose(KeyHandle);
|
||||
ExFreePool(KeyValuePartialInfo);
|
||||
ExFreePoolWithTag(KeyValuePartialInfo, TAG_STRING);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -137,7 +137,7 @@ IntQueryCaretBlinkRate(VOID)
|
|||
Val = 0;
|
||||
}
|
||||
|
||||
ExFreePool(KeyValuePartialInfo);
|
||||
ExFreePoolWithTag(KeyValuePartialInfo, TAG_STRING);
|
||||
NtClose(KeyHandle);
|
||||
|
||||
return (UINT)Val;
|
||||
|
|
|
@ -1259,7 +1259,7 @@ BuildWindowStationNameList(
|
|||
FALSE, &Context, NULL))
|
||||
{
|
||||
/* Something went wrong, maybe someone added a directory entry? Just give up. */
|
||||
ExFreePool(Buffer);
|
||||
ExFreePoolWithTag(Buffer, TAG_WINSTA);
|
||||
ObDereferenceObject(DirectoryHandle);
|
||||
return NT_SUCCESS(Status) ? STATUS_INTERNAL_ERROR : Status;
|
||||
}
|
||||
|
@ -1287,7 +1287,7 @@ BuildWindowStationNameList(
|
|||
{
|
||||
if (Buffer != InitialBuffer)
|
||||
{
|
||||
ExFreePool(Buffer);
|
||||
ExFreePoolWithTag(Buffer, TAG_WINSTA);
|
||||
}
|
||||
return STATUS_BUFFER_TOO_SMALL;
|
||||
}
|
||||
|
@ -1300,7 +1300,7 @@ BuildWindowStationNameList(
|
|||
{
|
||||
if (Buffer != InitialBuffer)
|
||||
{
|
||||
ExFreePool(Buffer);
|
||||
ExFreePoolWithTag(Buffer, TAG_WINSTA);
|
||||
}
|
||||
return STATUS_BUFFER_TOO_SMALL;
|
||||
}
|
||||
|
|
|
@ -1143,7 +1143,7 @@ NtGdiPolyPatBlt(
|
|||
|
||||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
ExFreePool(rb);
|
||||
ExFreePoolWithTag(rb, TAG_PATBLT);
|
||||
SetLastNtError(Status);
|
||||
return FALSE;
|
||||
}
|
||||
|
@ -1152,7 +1152,7 @@ NtGdiPolyPatBlt(
|
|||
Ret = IntGdiPolyPatBlt(hDC, dwRop, rb, cRects, Mode);
|
||||
|
||||
if (cRects > 0)
|
||||
ExFreePool(rb);
|
||||
ExFreePoolWithTag(rb, TAG_PATBLT);
|
||||
|
||||
return Ret;
|
||||
}
|
||||
|
|
|
@ -285,7 +285,7 @@ NtGdiTransformPoints( HDC hDC,
|
|||
if(!NT_SUCCESS(Status))
|
||||
{
|
||||
DC_UnlockDc(dc);
|
||||
ExFreePool(Points);
|
||||
ExFreePoolWithTag(Points, TAG_COORD);
|
||||
SetLastNtError(Status);
|
||||
return FALSE;
|
||||
}
|
||||
|
@ -302,7 +302,7 @@ NtGdiTransformPoints( HDC hDC,
|
|||
default:
|
||||
{
|
||||
DC_UnlockDc(dc);
|
||||
ExFreePool(Points);
|
||||
ExFreePoolWithTag(Points, TAG_COORD);
|
||||
SetLastWin32Error(ERROR_INVALID_PARAMETER);
|
||||
return FALSE;
|
||||
}
|
||||
|
@ -324,7 +324,7 @@ NtGdiTransformPoints( HDC hDC,
|
|||
if(!NT_SUCCESS(Status))
|
||||
{
|
||||
DC_UnlockDc(dc);
|
||||
ExFreePool(Points);
|
||||
ExFreePoolWithTag(Points, TAG_COORD);
|
||||
SetLastNtError(Status);
|
||||
return FALSE;
|
||||
}
|
||||
|
@ -332,7 +332,7 @@ NtGdiTransformPoints( HDC hDC,
|
|||
// If we are getting called that means User XForms is a mess!
|
||||
//
|
||||
DC_UnlockDc(dc);
|
||||
ExFreePool(Points);
|
||||
ExFreePoolWithTag(Points, TAG_COORD);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
|
|
@ -323,7 +323,7 @@ NtGdiExtCreatePen(
|
|||
if(!NT_SUCCESS(Status))
|
||||
{
|
||||
SetLastNtError(Status);
|
||||
ExFreePool(pSafeStyle);
|
||||
ExFreePoolWithTag(pSafeStyle, TAG_PENSTYLES);
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
@ -341,7 +341,7 @@ NtGdiExtCreatePen(
|
|||
hBrush);
|
||||
if (!hPen && pSafeStyle)
|
||||
{
|
||||
ExFreePool(pSafeStyle);
|
||||
ExFreePoolWithTag(pSafeStyle, TAG_PENSTYLES);
|
||||
}
|
||||
return hPen;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue