- Fix a potential case of non-paged pool memory double freeing. Spotted by Michael Martin.

svn path=/trunk/; revision=37905
This commit is contained in:
Aleksey Bragin 2008-12-06 19:35:54 +00:00
parent d610c156c6
commit 5abd794cd0

View file

@ -991,7 +991,6 @@ PspTerminateThreadByPointer(IN PETHREAD Thread,
if (!KeInsertQueueApc(Apc, Apc, NULL, 2))
{
/* The APC was already in the queue, fail */
ExFreePool(Apc);
Status = STATUS_UNSUCCESSFUL;
}
else