From 56bc75a1843104085678855a89c48158e1cf0b47 Mon Sep 17 00:00:00 2001 From: Stefan Ginsberg Date: Wed, 30 Sep 2009 19:29:08 +0000 Subject: [PATCH] - ASSERT on NULL-frees svn path=/trunk/; revision=43243 --- reactos/ntoskrnl/mm/pool.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; }