mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-10 15:10:53 +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
|
void
|
||||||
free (void *ptr)
|
free (void *ptr)
|
||||||
{
|
{
|
||||||
real_free (ptr);
|
if G_LIKELY (ptr < (void *)scratch.buf ||
|
||||||
track_free (ptr);
|
ptr >= (void *)&scratch.buf[sizeof scratch.buf])
|
||||||
|
{
|
||||||
|
real_free (ptr);
|
||||||
|
track_free (ptr);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void *
|
void *
|
||||||
|
|||||||
Reference in New Issue
Block a user