The default data mem allocator free routine does not make use of a ctx. It should be called only through PyDataMem_UserFREE since itself does not handle eventhook and tracemalloc logic.
| 405 | // It should be called only through PyDataMem_UserFREE |
| 406 | // since itself does not handle eventhook and tracemalloc logic. |
| 407 | static inline void |
| 408 | default_free(void *NPY_UNUSED(ctx), void *ptr, size_t size) |
| 409 | { |
| 410 | _npy_free_cache(ptr, size, NBUCKETS, datacache, &free); |
| 411 | } |
| 412 | |
| 413 | /* Memory handler global default */ |
| 414 | PyDataMem_Handler default_handler = { |
nothing calls this directly
no test coverage detected