diff Python/pythonrun.c @ 39454:9a1288d8200f legacy-trunk

Check returned pointer is valid. Klocwork #233
author Neal Norwitz <nnorwitz@gmail.com>
date Sat, 12 Aug 2006 02:06:34 +0000
parents 12e973bdfeee
children ed65765eb679
line wrap: on
line diff
--- a/Python/pythonrun.c	Sat Aug 12 01:57:47 2006 +0000
+++ b/Python/pythonrun.c	Sat Aug 12 02:06:34 2006 +0000
@@ -60,6 +60,7 @@
 static void call_ll_exitfuncs(void);
 extern void _PyUnicode_Init(void);
 extern void _PyUnicode_Fini(void);
+extern void _PyEval_FiniThreads(void);
 
 #ifdef WITH_THREAD
 extern void _PyGILState_Init(PyInterpreterState *, PyThreadState *);
@@ -461,6 +462,8 @@
 	_PyUnicode_Fini();
 #endif
 
+	_PyEval_FiniThreads();
+
 	/* XXX Still allocated:
 	   - various static ad-hoc pointers to interned strings
 	   - int and float free list blocks