_PyImport_Fini(): Closed small memory leak when an embedded app calls

Py_Initialize()/Py_Finalize() in a loop.  _PyImport_Filetab needed to
be deallocated.  Partial closure of SF #110681, Jitterbug PR#398.
This commit is contained in:
Barry Warsaw 2000-10-03 16:02:05 +00:00
parent e35360ffd0
commit 84294487df
1 changed files with 2 additions and 0 deletions

View File

@ -132,6 +132,8 @@ _PyImport_Fini(void)
{
Py_XDECREF(extensions);
extensions = NULL;
PyMem_DEL(_PyImport_Filetab);
_PyImport_Filetab = NULL;
}