mirror of
https://github.com/reactos/reactos.git
synced 2025-04-25 16:10:29 +00:00
Only warn when trying to free a NULL pointer with ExFreePoolWithTag
svn path=/trunk/; revision=39932
This commit is contained in:
parent
83b90e9547
commit
01213b0fed
1 changed files with 7 additions and 0 deletions
|
@ -296,6 +296,13 @@ ExFreePoolWithTag(
|
|||
}
|
||||
else
|
||||
{
|
||||
/* Warn only for NULL pointers */
|
||||
if (Block == NULL)
|
||||
{
|
||||
DPRINT1("Warning: Trying to free a NULL pointer!\n");
|
||||
return;
|
||||
}
|
||||
|
||||
/* Block was not inside any pool! */
|
||||
KeBugCheckEx(BAD_POOL_CALLER, 0x42, (ULONG_PTR)Block, 0, 0);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue