Commit 41801056 authored by Kevin Modzelewski's avatar Kevin Modzelewski

Call _PyImport_Fini to clean up c extensions

parent 24805469
......@@ -600,7 +600,7 @@ _PyImport_FixupExtension(char *name, char *filename)
{
PyObject *modules, *mod, *dict, *copy;
if (extensions == NULL) {
extensions = PyGC_RegisterStaticConstant(PyDict_New());
extensions = PyDict_New();
if (extensions == NULL)
return NULL;
}
......
......@@ -4811,6 +4811,7 @@ extern "C" void Py_Finalize() noexcept {
PyGC_Collect();
PyImport_Cleanup();
_PyImport_Fini();
#ifdef Py_REF_DEBUG
IN_SHUTDOWN = true;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment