From: Barry Warsaw Date: Tue, 3 Oct 2000 16:02:05 +0000 (+0000) Subject: _PyImport_Fini(): Closed small memory leak when an embedded app calls X-Git-Tag: v2.0c1~145 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=84294487dfbe394812512debb85e4b682cec8e57;p=python _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. --- diff --git a/Python/import.c b/Python/import.c index 9ecd38de97..8d06a53adf 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; }