diff --git a/Python/import.c b/Python/import.c index 9ecd38de978..8d06a53adf8 100644 --- a/Python/import.c +++ b/Python/import.c @@ -132,6 +132,8 @@ _PyImport_Fini(void) { Py_XDECREF(extensions); extensions = NULL; + PyMem_DEL(_PyImport_Filetab); + _PyImport_Filetab = NULL; }