_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:
parent
e35360ffd0
commit
84294487df
|
@ -132,6 +132,8 @@ _PyImport_Fini(void)
|
||||||
{
|
{
|
||||||
Py_XDECREF(extensions);
|
Py_XDECREF(extensions);
|
||||||
extensions = NULL;
|
extensions = NULL;
|
||||||
|
PyMem_DEL(_PyImport_Filetab);
|
||||||
|
_PyImport_Filetab = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue