Manage calls to calloc/free through Cython
copied from cf-staging / cymemconda install conda-forge::cymem
conda install conda-forge/label/cf201901::cymem
conda install conda-forge/label/cf202003::cymem
conda install conda-forge/label/gcc7::cymem
cymem provides two small memory-management helpers for Cython. They make it easy to tie memory to a Python object’s life-cycle, so that the memory is freed when the object is garbage collected.