diff options
author | Barry Warsaw <barry@python.org> | 2000-10-03 16:02:05 (GMT) |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 2000-10-03 16:02:05 (GMT) |
commit | 84294487dfbe394812512debb85e4b682cec8e57 (patch) | |
tree | 8c33ab37e405fa3ea472870789aebc62ba4e1c8b /Python/import.c | |
parent | e35360ffd0c3cfbcc97e6cae0e0146d11336f9d0 (diff) | |
download | cpython-84294487dfbe394812512debb85e4b682cec8e57.zip cpython-84294487dfbe394812512debb85e4b682cec8e57.tar.gz cpython-84294487dfbe394812512debb85e4b682cec8e57.tar.bz2 |
_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.
Diffstat (limited to 'Python/import.c')
-rw-r--r-- | Python/import.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; } |