preload: always track realloc changes

We might go to zero, or we might change our size. Either way we want to
have accurate information about that size change.
This commit is contained in:
Christian Hergert
2023-08-15 14:29:01 -07:00
parent 9e87206c37
commit f00773702a

View File

@ -182,13 +182,8 @@ realloc (void *ptr,
size_t size)
{
void *ret = real_realloc (ptr, size);
if (ret != ptr)
{
track_free (ptr);
track_malloc (ret, size);
}
track_free (ptr);
track_malloc (ret, size);
return ret;
}