}
/* Free the allocated memory */
- ExFreePool(Event);
+ ExFreePoolWithTag(Event, GDITAG_ENG_EVENT);
/* Return success */
return TRUE;
else
{
/* Free the allocation */
- ExFreePool(EngEvent);
+ ExFreePoolWithTag(EngEvent, GDITAG_ENG_EVENT);
EngEvent = NULL;
}
ObDereferenceObject(Event->pKEvent);
/* Free the Eng object */
- ExFreePool(Event);
+ ExFreePoolWithTag(Event, GDITAG_ENG_EVENT);
return TRUE;
}