MCPcopy Create free account
hub / github.com/numpy/numpy / default_free

Function default_free

numpy/core/src/multiarray/alloc.c:407–411  ·  view source on GitHub ↗

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.

Source from the content-addressed store, hash-verified

405// It should be called only through PyDataMem_UserFREE
406// since itself does not handle eventhook and tracemalloc logic.
407static inline void
408default_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 */
414PyDataMem_Handler default_handler = {

Callers

nothing calls this directly

Calls 1

_npy_free_cacheFunction · 0.85

Tested by

no test coverage detected