svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r68669 | antoine.pitrou | 2009-01-17 22:06:43 +0100 (sam., 17 janv. 2009) | 3 lines
Issue #4838: When a module is deallocated, free the memory backing the optional module state data.
........
Core and Builtins
-----------------
+- Issue #4838: When a module is deallocated, free the memory backing the
+ optional module state data.
+
- Issue #4910: Rename nb_long slot to nb_reserved, and change its
type to (void *).
_PyModule_Clear((PyObject *)m);
Py_DECREF(m->md_dict);
}
+ if (m->md_state != NULL)
+ PyMem_FREE(m->md_state);
Py_TYPE(m)->tp_free((PyObject *)m);
}