mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 09:25:10 +00:00
- ASSERT on NULL-frees
svn path=/trunk/; revision=43243
This commit is contained in:
parent
17c528d7c3
commit
56bc75a184
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue