| 199 | } |
| 200 | |
| 201 | void* 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 | |
| 215 | void free(void* ptr) { |
| 216 | #ifdef _WIN32 |
nothing calls this directly
no test coverage detected