[WIN32K] Free allocations with the tag that was used to allocate them

svn path=/trunk/; revision=47632
This commit is contained in:
Gregor Schneider 2010-06-06 18:34:57 +00:00
parent dd3d52b5ed
commit d607e811d9

View file

@ -983,7 +983,7 @@ co_MsqDispatchOneSentMessage(PUSER_MESSAGE_QUEUE MessageQueue)
}
/* free the message */
ExFreePool(Message);
ExFreePoolWithTag(Message, TAG_USRMSG);
return(TRUE);
}
@ -1060,7 +1060,7 @@ MsqRemoveWindowMessagesFromQueue(PVOID pWindow)
}
/* free the message */
ExFreePool(SentMessage);
ExFreePoolWithTag(SentMessage, TAG_USRMSG);
CurrentEntry = MessageQueue->SentMessagesListHead.Flink;
}