mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
memory-collector: avoid tracking scratch memory free
This commit is contained in:
committed by
Philip Withnall
parent
03326e82fa
commit
760805c8b9
@ -197,8 +197,12 @@ realloc (void *ptr,
|
||||
void
|
||||
free (void *ptr)
|
||||
{
|
||||
real_free (ptr);
|
||||
track_free (ptr);
|
||||
if G_LIKELY (ptr < (void *)scratch.buf ||
|
||||
ptr >= (void *)&scratch.buf[sizeof scratch.buf])
|
||||
{
|
||||
real_free (ptr);
|
||||
track_free (ptr);
|
||||
}
|
||||
}
|
||||
|
||||
void *
|
||||
|
||||
Reference in New Issue
Block a user