mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 19:26:32 +00:00
Only warn when trying to free a NULL pointer with ExFreePoolWithTag
svn path=/trunk/; revision=39932
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user