Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 95de5c1

Browse files
committed
Move Unicode finalization further down in the chain.
Fixes bug #525620.
1 parent bc82ab1 commit 95de5c1

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

Python/pythonrun.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -219,11 +219,6 @@ Py_Finalize(void)
219219
/* Disable signal handling */
220220
PyOS_FiniInterrupts();
221221

222-
#ifdef Py_USING_UNICODE
223-
/* Cleanup Unicode implementation */
224-
_PyUnicode_Fini();
225-
#endif
226-
227222
/* Cleanup Codec registry */
228223
_PyCodecRegistry_Fini();
229224

@@ -268,6 +263,11 @@ Py_Finalize(void)
268263
PyInt_Fini();
269264
PyFloat_Fini();
270265

266+
#ifdef Py_USING_UNICODE
267+
/* Cleanup Unicode implementation */
268+
_PyUnicode_Fini();
269+
#endif
270+
271271
/* XXX Still allocated:
272272
- various static ad-hoc pointers to interned strings
273273
- int and float free list blocks

0 commit comments

Comments
 (0)