https://weshallneversurrender.com/PyModuleDef-m-free/
Understanding PyModuleDef.m_free: Freeing Your Python Extension Modules