Check returned pointer is valid.

Klocwork #233
This commit is contained in:
Neal Norwitz 2006-08-12 02:06:34 +00:00
parent b45f351832
commit 6b4953fd3d
5 changed files with 28 additions and 2 deletions

View file

@ -60,6 +60,7 @@ static void call_sys_exitfunc(void);
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 @@ Py_Finalize(void)
_PyUnicode_Fini();
#endif
_PyEval_FiniThreads();
/* XXX Still allocated:
- various static ad-hoc pointers to interned strings
- int and float free list blocks