summaryrefslogtreecommitdiff
path: root/Python/pythonrun.c
diff options
context:
space:
mode:
authorMarc-André Lemburg <mal@egenix.com>2002-04-08 08:19:36 +0000
committerMarc-André Lemburg <mal@egenix.com>2002-04-08 08:19:36 +0000
commit3e01995bf61c4c54873357511d106c656bb8394d (patch)
tree9ebd987a34fbac7e6dbf29ed7d799bf5efd61f1f /Python/pythonrun.c
parente681c79d31b1f54cec5260142cdcba244ad74d2b (diff)
downloadcpython-3e01995bf61c4c54873357511d106c656bb8394d.tar.gz
Move Unicode finalization further down in the chain.
Fixes bug #525620.
Diffstat (limited to 'Python/pythonrun.c')
-rw-r--r--Python/pythonrun.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c
index b22009db17..f0727d3f5b 100644
--- a/Python/pythonrun.c
+++ b/Python/pythonrun.c
@@ -219,11 +219,6 @@ Py_Finalize(void)
/* Disable signal handling */
PyOS_FiniInterrupts();
-#ifdef Py_USING_UNICODE
- /* Cleanup Unicode implementation */
- _PyUnicode_Fini();
-#endif
-
/* Cleanup Codec registry */
_PyCodecRegistry_Fini();
@@ -268,6 +263,11 @@ Py_Finalize(void)
PyInt_Fini();
PyFloat_Fini();
+#ifdef Py_USING_UNICODE
+ /* Cleanup Unicode implementation */
+ _PyUnicode_Fini();
+#endif
+
/* XXX Still allocated:
- various static ad-hoc pointers to interned strings
- int and float free list blocks