Author: sginsberg
Date: Wed Sep 30 21:29:08 2009
New Revision: 43243
URL:
http://svn.reactos.org/svn/reactos?rev=43243&view=rev
Log:
- ASSERT on NULL-frees
Modified:
trunk/reactos/ntoskrnl/mm/pool.c
Modified: trunk/reactos/ntoskrnl/mm/pool.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/mm/pool.c?rev=432…
==============================================================================
--- trunk/reactos/ntoskrnl/mm/pool.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/mm/pool.c [iso-8859-1] Wed Sep 30 21:29:08 2009
@@ -294,10 +294,11 @@
else if (Block) ExFreeArmPoolWithTag(Block, Tag);
else
{
- /* Warn only for NULL pointers */
+ /* Only warn and break for NULL pointers */
if (Block == NULL)
{
DPRINT1("Warning: Trying to free a NULL pointer!\n");
+ ASSERT(FALSE);
return;
}