mirror of
https://github.com/RGBCube/serenity
synced 2025-05-16 20:25:07 +00:00
LibC: Notify UE at the start of free() instead of at the end
This way, if we end up deallocating an entire ChunkedBlock, UE doesn't get confused thinking the freed pointer has never been allocated.
This commit is contained in:
parent
1965fc5b98
commit
fe79b9ff94
1 changed files with 1 additions and 1 deletions
|
@ -377,8 +377,8 @@ static void free_impl(void* ptr)
|
|||
{
|
||||
if (s_profiling)
|
||||
perf_event(PERF_EVENT_FREE, reinterpret_cast<FlatPtr>(ptr), 0);
|
||||
free_impl(ptr);
|
||||
ue_notify_free(ptr);
|
||||
free_impl(ptr);
|
||||
}
|
||||
|
||||
void* calloc(size_t count, size_t size)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue