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

Function _buffer_info_free

numpy/core/src/multiarray/buffer.c:671–680  ·  view source on GitHub ↗

* Checks whether the pointer is tagged, and then frees the cache list. * (The tag check is only for transition due to changed structure size in 1.20) */

Source from the content-addressed store, hash-verified

669 * (The tag check is only for transition due to changed structure size in 1.20)
670 */
671NPY_NO_EXPORT int
672_buffer_info_free(void *buffer_info, PyObject *obj)
673{
674 _buffer_info_t *untagged_buffer_info;
675 if (_buffer_info_untag(buffer_info, &untagged_buffer_info, obj) < 0) {
676 return -1;
677 }
678 _buffer_info_free_untagged(untagged_buffer_info);
679 return 0;
680}
681
682
683/*

Callers 1

array_deallocFunction · 0.85

Calls 2

_buffer_info_untagFunction · 0.85

Tested by

no test coverage detected