diff --git a/reactos/ntoskrnl/mm/pool.c b/reactos/ntoskrnl/mm/pool.c index 7d1884faa08..bb5c40fb913 100644 --- a/reactos/ntoskrnl/mm/pool.c +++ b/reactos/ntoskrnl/mm/pool.c @@ -294,10 +294,11 @@ ExFreePoolWithTag( 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; }