diff options
| author | Neal Norwitz <nnorwitz@gmail.com> | 2006-08-12 02:06:34 +0000 |
|---|---|---|
| committer | Neal Norwitz <nnorwitz@gmail.com> | 2006-08-12 02:06:34 +0000 |
| commit | e1866f41f7220026254b64ad9d231b9abbb1d7b6 (patch) | |
| tree | df69f32a2b173db00d869dd50de9a868bbba02f7 /Python/pythonrun.c | |
| parent | fb3e915e378ae1b420ca8e378460809568d33dc4 (diff) | |
| download | cpython-e1866f41f7220026254b64ad9d231b9abbb1d7b6.tar.gz | |
Check returned pointer is valid.
Klocwork #233
Diffstat (limited to 'Python/pythonrun.c')
| -rw-r--r-- | Python/pythonrun.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c index 88fd67c1e5..80f62324f3 100644 --- a/Python/pythonrun.c +++ b/Python/pythonrun.c @@ -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 |
