comparison 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
comparison
equal deleted inserted replaced
39453:27f9b4fee14f 39454:9a1288d8200f
58 static void initsigs(void); 58 static void initsigs(void);
59 static void call_sys_exitfunc(void); 59 static void call_sys_exitfunc(void);
60 static void call_ll_exitfuncs(void); 60 static void call_ll_exitfuncs(void);
61 extern void _PyUnicode_Init(void); 61 extern void _PyUnicode_Init(void);
62 extern void _PyUnicode_Fini(void); 62 extern void _PyUnicode_Fini(void);
63 extern void _PyEval_FiniThreads(void);
63 64
64 #ifdef WITH_THREAD 65 #ifdef WITH_THREAD
65 extern void _PyGILState_Init(PyInterpreterState *, PyThreadState *); 66 extern void _PyGILState_Init(PyInterpreterState *, PyThreadState *);
66 extern void _PyGILState_Fini(void); 67 extern void _PyGILState_Fini(void);
67 #endif /* WITH_THREAD */ 68 #endif /* WITH_THREAD */
458 459
459 #ifdef Py_USING_UNICODE 460 #ifdef Py_USING_UNICODE
460 /* Cleanup Unicode implementation */ 461 /* Cleanup Unicode implementation */
461 _PyUnicode_Fini(); 462 _PyUnicode_Fini();
462 #endif 463 #endif
464
465 _PyEval_FiniThreads();
463 466
464 /* XXX Still allocated: 467 /* XXX Still allocated:
465 - various static ad-hoc pointers to interned strings 468 - various static ad-hoc pointers to interned strings
466 - int and float free list blocks 469 - int and float free list blocks
467 - whatever various modules and libraries allocate 470 - whatever various modules and libraries allocate