mirror of
https://github.com/reactos/reactos.git
synced 2024-08-01 17:11:35 +00:00
- ASSERT on NULL-frees
svn path=/trunk/; revision=43243
This commit is contained in:
parent
17c528d7c3
commit
56bc75a184
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue