* 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) */
| 669 | * (The tag check is only for transition due to changed structure size in 1.20) |
| 670 | */ |
| 671 | NPY_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 | /* |
no test coverage detected