Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
TwelveEyes committed Jun 29, 2024
1 parent de5af42 commit 4f5be69
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions code/qcommon/z_memman_pc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -504,6 +504,10 @@ static int Zone_FreeBlock(zoneHeader_t *pMemory)
// returns block size if so
qboolean Z_IsFromZone(const void *pvAddress, memtag_t eTag)
{
if (!pvAddress)
{
return qfalse;
}
const zoneHeader_t *pMemory = ((const zoneHeader_t *)pvAddress) - 1;
#if 1 //debugging double free
if (pMemory->iMagic == INT_ID('F','R','E','E'))
Expand Down

0 comments on commit 4f5be69

Please sign in to comment.