- ASSERT on NULL-frees

svn path=/trunk/; revision=43243
This commit is contained in:
Stefan Ginsberg 2009-09-30 19:29:08 +00:00
parent 17c528d7c3
commit 56bc75a184

View file

@ -294,10 +294,11 @@ ExFreePoolWithTag(
else if (Block) ExFreeArmPoolWithTag(Block, Tag); else if (Block) ExFreeArmPoolWithTag(Block, Tag);
else else
{ {
/* Warn only for NULL pointers */ /* Only warn and break for NULL pointers */
if (Block == NULL) if (Block == NULL)
{ {
DPRINT1("Warning: Trying to free a NULL pointer!\n"); DPRINT1("Warning: Trying to free a NULL pointer!\n");
ASSERT(FALSE);
return; return;
} }