MCPcopy Create free account
hub / github.com/FastLED/FastLED / realloc

Function realloc

tests/profile/json_memory_profile.cpp:201–213  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

199}
200
201void* realloc(void* ptr, size_t size) {
202#ifdef _WIN32
203 init_real_allocators();
204#endif
205 if (g_tracking_enabled && ptr) {
206 g_stats.on_free(ptr);
207 }
208 void* new_ptr = real_realloc(ptr, size);
209 if (g_tracking_enabled && new_ptr) {
210 g_stats.on_malloc(new_ptr, size);
211 }
212 return new_ptr;
213}
214
215void free(void* ptr) {
216#ifdef _WIN32

Callers

nothing calls this directly

Calls 4

init_real_allocatorsFunction · 0.85
real_reallocFunction · 0.85
on_freeMethod · 0.80
on_mallocMethod · 0.80

Tested by

no test coverage detected