From 84294487dfbe394812512debb85e4b682cec8e57 Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Tue, 3 Oct 2000 16:02:05 +0000 Subject: _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. --- Python/import.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Python/import.c b/Python/import.c index 9ecd38d..8d06a53 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; } -- cgit v0.12